Fix an issue where a window's delegate could be called during

deallocation. This also avoids unnecessary screen flicker when the
window is closed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28960 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2009-11-05 22:23:52 +00:00
parent cb299e33c8
commit 9326ec2792
2 changed files with 5 additions and 1 deletions

View file

@ -731,7 +731,7 @@ many times.
- (void) dealloc
{
[self setToolbar: nil];
RELEASE(_toolbar);
[nc removeObserver: self];
[isa _removeAutodisplayedWindow: self];
[NSApp removeWindowsItem: self];