views:

68

answers:

1

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?

+1  A: 

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.

bddckr