fix for possible crash during thread exit

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38406 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-03-13 18:31:14 +00:00
parent b968b38b09
commit 04815b06fb
2 changed files with 8 additions and 0 deletions

View file

@ -790,6 +790,7 @@ pop_pool_from_cache (struct autorelease_thread_vars *tv)
/* Now free the memory (we have finished usingthe pool).
*/
pool = tv->current_pool;
tv->current_pool = nil;
while (pool)
{
NSAutoreleasePool *p = pool->_parent;