From 352ae1bc9aa108d793a9ab3f33f5d7bb3d55bca3 Mon Sep 17 00:00:00 2001 From: Alexander Malmberg Date: Mon, 16 Sep 2002 17:11:12 +0000 Subject: [PATCH] Make last change C89 compatible. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14465 72102866-910b-0410-8b05-ffd578937521 --- Source/NSWindow.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSWindow.m b/Source/NSWindow.m index fead5a31f..04f9bc272 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -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]