mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
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:
parent
6fbd4717a5
commit
aa3ba49fb9
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -731,7 +731,7 @@ many times.
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
[self setToolbar: nil];
|
||||
RELEASE(_toolbar);
|
||||
[nc removeObserver: self];
|
||||
[isa _removeAutodisplayedWindow: self];
|
||||
[NSApp removeWindowsItem: self];
|
||||
|
|
Loading…
Reference in a new issue