Need help finding the leak in this code please
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);<-----This line gets highlighted as the leak
[pool release];
return 开发者_Go百科retVal;
}
It leaks right when I start the app.
The leak is not there but rather in something the NSApplication calls before the app delegate. Most likely its in an added library or framework. IIRC, a circular reference in a nib can also cause this. Look in your MainWindow nib.
精彩评论