From 7bc19d4b5bbfc34a16825f256d84efa459c018f0 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Mon, 18 Mar 1996 21:43:14 +0000 Subject: [PATCH] ([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 --- Source/NSAutoreleasePool.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/NSAutoreleasePool.m b/Source/NSAutoreleasePool.m index ef8c933d8..6efd4bd5a 100644 --- a/Source/NSAutoreleasePool.m +++ b/Source/NSAutoreleasePool.m @@ -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); }