mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
destroy graphics context on thread exit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25787 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7adfdadc0e
commit
8dc5f2ad2f
2 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ extern "C" {
|
|||
unsigned _stackSize;
|
||||
BOOL _cancelled;
|
||||
BOOL _active;
|
||||
NSHandler *_exception_handler;
|
||||
NSHandler *_exception_handler; // Not retained.
|
||||
NSMutableDictionary *_thread_dictionary;
|
||||
struct autorelease_thread_vars _autorelease_vars;
|
||||
id _gcontext;
|
||||
|
|
|
@ -745,6 +745,7 @@ gnustep_base_thread_callback(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
DESTROY(_gcontext);
|
||||
if (self == defaultThread)
|
||||
{
|
||||
defaultThread = nil;
|
||||
|
|
Loading…
Reference in a new issue