From 336b591e557fe6c4ba22f01d47976967fe389dec Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 8 Apr 1992 11:16:25 +0000 Subject: [PATCH] in form_dealloc, only hide the form if it's visible --- Modules/flmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/flmodule.c b/Modules/flmodule.c index f51586a3808..2d26533f1f0 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -1816,7 +1816,8 @@ form_dealloc(f) formobject *f; { releaseobjects(f->ob_form); - fl_hide_form(f->ob_form); + if (f->ob_form->visible) + fl_hide_form(f->ob_form); fl_free_form(f->ob_form); DEL(f); }