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:
Richard Frith-MacDonald 2007-12-25 20:31:24 +00:00
parent 7adfdadc0e
commit 8dc5f2ad2f
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -745,6 +745,7 @@ gnustep_base_thread_callback(void)
}
}
}
DESTROY(_gcontext);
if (self == defaultThread)
{
defaultThread = nil;