mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
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.
This commit is contained in:
parent
f5ce9e2004
commit
a9e139e14c
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
+ (void) addObject: (id)anObject
|
||||
{
|
||||
if (!poolStack || [poolStack count])
|
||||
if (!poolStack || ![poolStack count])
|
||||
[[AutoreleasePool alloc] init];
|
||||
|
||||
[[poolStack lastObject] addObject: anObject];
|
||||
|
|
Loading…
Reference in a new issue