Beathard
Beathard

Reputation: 11

Memory Leak in Application Main()

The following code is producing a memory leak on the in retVal line:

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;

Any ideas on how to fix?

Upvotes: 0

Views: 334

Answers (1)

bddckr
bddckr

Reputation: 1392

This probably just means that something created with UIApplicationMain() is leaking, the code you provided is just fine. You should have a more detailed look with Instruments.

Upvotes: 1

Related Questions