diff --git a/ChangeLog b/ChangeLog index d2481e8f3..1d3034561 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Feb 21 14:40:00 2000 Richard Frith-Macdonald + + * Source/NSWindow.m: ([-close]) remove spurious retain. + * Source/NSApplication.m: ([-run]) do startup stuff inside an + autorelease pool and release it before main loop. + Tue Jan 25 14:52:27 2000 Nicola Pero Contributed by Fred Kiefer: diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 37ef1d251..4490ab853 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -117,19 +117,6 @@ BOOL GSViewAcceptsDrag(NSView *v, id dragInfo); @implementation NSWindow -- (int) arc -{ - return [self retainCount] - [NSAutoreleasePool autoreleaseCountForObject: self]; -} -- (void) release -{ - [super release]; -} -- (id) retain -{ - return [super retain]; -} - typedef struct NSView_struct { @defs(NSView) @@ -1331,7 +1318,6 @@ resetCursorRectsForView(NSView *theView) - (void) close { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; - CREATE_AUTORELEASE_POOL(arp); [nc postNotificationName: NSWindowWillCloseNotification object: self]; _f.has_opened = NO; @@ -1342,7 +1328,6 @@ resetCursorRectsForView(NSView *theView) [NSApp removeWindowsItem: self]; [self orderOut: self]; - RELEASE(arp); if (_f.is_released_when_closed) RELEASE(self); }