summaryrefslogtreecommitdiffstats
path: root/Modules/flmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-08 11:16:25 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-08 11:16:25 (GMT)
commit336b591e557fe6c4ba22f01d47976967fe389dec (patch)
tree49d76da48444f9aa7157aa9502879cb4e6189467 /Modules/flmodule.c
parentcf49ac55ac16a11e8fb5b14a80081fa39b944cf8 (diff)
downloadcpython-336b591e557fe6c4ba22f01d47976967fe389dec.zip
cpython-336b591e557fe6c4ba22f01d47976967fe389dec.tar.gz
cpython-336b591e557fe6c4ba22f01d47976967fe389dec.tar.bz2
in form_dealloc, only hide the form if it's visible
Diffstat (limited to 'Modules/flmodule.c')
-rw-r--r--Modules/flmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c
index f51586a..2d26533 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);
}