diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 4490ab853..56965a883 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -1318,6 +1318,7 @@ resetCursorRectsForView(NSView *theView) - (void) close { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + CREATE_AUTORELEASE_POOL(pool); [nc postNotificationName: NSWindowWillCloseNotification object: self]; _f.has_opened = NO; @@ -1327,7 +1328,7 @@ resetCursorRectsForView(NSView *theView) argument: nil]; [NSApp removeWindowsItem: self]; [self orderOut: self]; - + RELEASE(pool); if (_f.is_released_when_closed) RELEASE(self); }