#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.
当我打开应用程序时,它就会泄露。
1 个解决方案
#1
0
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.
泄露不在那里,而是在NSApplication在应用委托之前调用的东西中。很可能是在添加的库或框架中。IIRC, nib中的循环引用也会导致这种情况。看看你的主窗口nib。
#1
0
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.
泄露不在那里,而是在NSApplication在应用委托之前调用的东西中。很可能是在添加的库或框架中。IIRC, nib中的循环引用也会导致这种情况。看看你的主窗口nib。