Hi there,
while testing and playing around with instance counting, I found that a
simple
void main(void)
{
NSAutoreleasePool *pool = nil;
pool = [[NSAutoreleasePool alloc] init];
{
NSObject *o;
o = [[NSObject alloc] init];
NSLog(@"--> %@", [o description]);
[o release];
}
[pool release];
exit(EXIT_SUCCESS);
}
gives me a total of 50 instances not accounted for:
../shared_obj/example: Memory leak detected: NSBundle (2), NSRecursiveLock
(2), NSUserDefaults (1), GSArrayEnumerator (35), NSLock (1),
GSArrayEnumeratorReverse (1), GSLazyRecursiveLock (3), NSFileManager (1),
GSNonretainedObjectValue (4)
Removing the NSLog(), I get no leak.
Shouldn't the autorelease pool take care of those instances?