mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
([NSAutoreleasePool -dealloc]): When unintalling ourselves at the
current pool, and setting our parent to be the current pool, be sure to set our parent's _CHILD ivar to nil. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1340 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
459308b0a3
commit
b323dabc31
1 changed files with 3 additions and 1 deletions
|
@ -308,8 +308,10 @@ pop_pool_from_cache ()
|
|||
}
|
||||
}
|
||||
|
||||
/* Uninstall ourselves as the current pool; install our parent parent. */
|
||||
/* Uninstall ourselves as the current pool; install our parent pool. */
|
||||
current_pool = _parent;
|
||||
if (current_pool)
|
||||
current_pool->_child = nil;
|
||||
|
||||
/* Don't deallocate ourself, just save us for later use. */
|
||||
push_pool_to_cache (self);
|
||||
|
|
Loading…
Reference in a new issue