views:

92

answers:

1
#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 retVal; 
}

It leaks right when I start the app.

A: 

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.

TechZen
it only says View "Loaded from RootViewController"
NextRev