From: Guido van Rossum Date: Wed, 8 Apr 1992 11:16:25 +0000 (+0000) Subject: in form_dealloc, only hide the form if it's visible X-Git-Tag: v0.9.8~371 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=336b591e557fe6c4ba22f01d47976967fe389dec;p=thirdparty%2FPython%2Fcpython.git in form_dealloc, only hide the form if it's visible --- diff --git a/Modules/flmodule.c b/Modules/flmodule.c index f51586a38080..2d26533f1f09 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); }