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?
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?
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.