Make last change C89 compatible.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14465 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2002-09-16 17:11:12 +00:00
parent f330e81ccd
commit 2fb0700465

View file

@ -2100,6 +2100,8 @@ resetCursorRectsForView(NSView *theView)
{
if (_f.has_closed == NO)
{
CREATE_AUTORELEASE_POOL(pool);
/* The NSWindowCloseNotification might result in us being
deallocated. To make sure self stays valid as long as is
necessary, we retain ourselves here and balance it with a
@ -2111,8 +2113,6 @@ resetCursorRectsForView(NSView *theView)
RETAIN(self);
}
CREATE_AUTORELEASE_POOL(pool);
[nc postNotificationName: NSWindowWillCloseNotification object: self];
_f.has_opened = NO;
[[NSRunLoop currentRunLoop]