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,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);
}