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:
Wolfgang Lux 2009-11-05 22:23:52 +00:00
parent 6fbd4717a5
commit aa3ba49fb9
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2009-11-05 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSWindow.m (-dealloc): Release the toolbar without
updating the window's geometry and thus avoid calling the delegate
during deallocation.
* Source/NSAlert.m (NSBeginAlertSheet, NSBeginCriticalAlertSheet,
NSBeginInformationalAlertSheet): Call the didEndSelector after the
sheet has been closed.

View file

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