Make dealloc of NSWindow a tiny bit saver.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30321 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-05-08 20:18:14 +00:00
parent 0ea019f35f
commit da7fd680fb
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2010-05-02 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow.m (-dealloc): Use DESTROY instead of RELEASE.
2010-05-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/GSWindowDecorationView.m (-layout): Fix a regression

View file

@ -741,7 +741,7 @@ many times.
- (void) dealloc
{
RELEASE(_toolbar);
DESTROY(_toolbar);
[nc removeObserver: self];
[isa _removeAutodisplayedWindow: self];
[NSApp removeWindowsItem: self];
@ -764,7 +764,7 @@ many times.
NSWindow *mini = [NSApp windowWithWindowNumber: _counterpart];
_counterpart = 0;
RELEASE(mini);
DESTROY(mini);
}
/* Clean references to this window - important if some of the views