mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
233252296c
commit
a3f9d4432c
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue