([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:
mccallum 1996-03-18 21:43:14 +00:00
parent 4904c6560a
commit c8e7da6b14

View file

@ -153,10 +153,7 @@ static unsigned pool_count_warning_threshhold = UINT_MAX;
[anObject release]; [anObject release];
} }
OBJC_FREE(released); OBJC_FREE(released);
if (parent) current_pool = parent;
current_pool = parent;
else
current_pool = [[NSAutoreleasePool alloc] init];
NSDeallocateObject(self); NSDeallocateObject(self);
} }