Fix crash caused by close being called recursively

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30087 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2010-04-05 16:07:46 +00:00
parent b502d7bd31
commit 6e85413971
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-04-05 Doug Simons <doug.simons@testplant.com>
* Source/NSWindow.m: Fix crash caused by close being called
recursively.
2010-04-05 Doug Simons <doug.simons@testplant.com>
* Source/NSDrawer.m: Fix problem with drawer window being shown

View file

@ -2664,6 +2664,7 @@ resetCursorRectsForView(NSView *theView)
{
if (_f.has_closed == NO)
{
_f.has_closed = YES;
CREATE_AUTORELEASE_POOL(pool);
/* The NSWindowCloseNotification might result in us being
@ -2689,7 +2690,6 @@ resetCursorRectsForView(NSView *theView)
}
RELEASE(pool);
_f.has_closed = YES;
RELEASE(self);
}
}