Store the run loop pool in an ivar so that terminate can destroy it

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12688 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-22 22:38:58 +00:00
parent 1bd3966aa3
commit 9ed3f0bc53

View file

@ -33,6 +33,7 @@
#include <AppKit/GSInfoPanel.h>
@class NSArray;
@class NSAutoreleasePool;
@class NSMutableArray;
@class NSString;
@class NSException;
@ -82,6 +83,12 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
NSMutableArray *_inactive;
NSWindow *_hidden_key;
GSInfoPanel *_infoPanel;
/* This autorelease pool should only be created and used by -run, with
a single exception (which is why it is stored here as an ivar): the
-terminate: method will destroy this autorelease pool before exiting
the program. */
NSAutoreleasePool *_runLoopPool;
}
/*