开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜