During dealloc, set the main and window menu to nil after releasing them,

so we don't try updating them later on in the shutdown process


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12691 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-22 23:04:25 +00:00
parent 233252296c
commit a3f9d4432c

View file

@ -736,8 +736,11 @@ static NSCell* tileCell = nil;
NSZoneFree(NSDefaultMallocZone(), tmp);
}
TEST_RELEASE(_main_menu);
TEST_RELEASE(_windows_menu);
/* Release the menus, then set them to nil so we don't try updating
them after they have been deallocated. */
DESTROY(_main_menu);
DESTROY(_windows_menu);
TEST_RELEASE(_app_icon);
TEST_RELEASE(_app_icon_window);
TEST_RELEASE(_infoPanel);