in form_dealloc, only hide the form if it's visible

This commit is contained in:
Guido van Rossum 1992-04-08 11:16:25 +00:00
parent cf49ac55ac
commit 336b591e55
1 changed files with 2 additions and 1 deletions

View File

@ -1816,6 +1816,7 @@ form_dealloc(f)
formobject *f; formobject *f;
{ {
releaseobjects(f->ob_form); releaseobjects(f->ob_form);
if (f->ob_form->visible)
fl_hide_form(f->ob_form); fl_hide_form(f->ob_form);
fl_free_form(f->ob_form); fl_free_form(f->ob_form);
DEL(f); DEL(f);