Reputation: 11
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
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