From a9e139e14c589528a80c17a5f77690872d5d2f71 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Mar 2011 13:12:30 +0900 Subject: [PATCH] Correct a minor logic error. We don't want to always add a new autorelease pool, and we certainly want one if there are none. --- ruamoko/lib/AutoreleasePool.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruamoko/lib/AutoreleasePool.r b/ruamoko/lib/AutoreleasePool.r index 36883db07..6d8077cfc 100644 --- a/ruamoko/lib/AutoreleasePool.r +++ b/ruamoko/lib/AutoreleasePool.r @@ -24,7 +24,7 @@ + (void) addObject: (id)anObject { - if (!poolStack || [poolStack count]) + if (!poolStack || ![poolStack count]) [[AutoreleasePool alloc] init]; [[poolStack lastObject] addObject: anObject];