mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
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:
parent
1bd3966aa3
commit
9ed3f0bc53
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue