Fixed destroying the main loop autorelease pool when the app terminates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12690 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-22 22:40:45 +00:00
parent 27e4de7dc3
commit 233252296c

View file

@ -1,3 +1,13 @@
Fri Feb 22 21:03:19 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Headers/gnustep/gui/NSApplication.h (_runLoopPool): Store the main run loop
autorelease pool in a ivar.
* Source/NSApplication.m ([-run]): Use the _runLoopPool rather
than a local pool. Also, check for recursive invocation, and
enclose into an autorelease pool the last instructions.
([-terminate:]): Destroy the _runLoopPool; enclose destruction
of NSApp into yet another autorelease pool.
Fri Feb 22 18:22:48 2002 Nicola Pero <nicola@brainstorm.co.uk>
* Source/NSApplication.m ([-terminate:]): Use an autorelease pool.