mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
([NSAutoreleasePool -dealloc]): Set CURRENT_POOL to PARENT, even if
PARENT is nil. This is correct behavior. Old behavior could cause infinite loops in the PARENT pointers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1197 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4904c6560a
commit
c8e7da6b14
1 changed files with 1 additions and 4 deletions
|
@ -153,10 +153,7 @@ static unsigned pool_count_warning_threshhold = UINT_MAX;
|
|||
[anObject release];
|
||||
}
|
||||
OBJC_FREE(released);
|
||||
if (parent)
|
||||
current_pool = parent;
|
||||
else
|
||||
current_pool = [[NSAutoreleasePool alloc] init];
|
||||
current_pool = parent;
|
||||
NSDeallocateObject(self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue