Iphone 需要帮助查找此代码中的漏洞吗

Iphone 需要帮助查找此代码中的漏洞吗,iphone,objective-c,xcode,memory-leaks,Iphone,Objective C,Xcode,Memory Leaks,当我启动应用程序时,它就泄漏了。泄漏不在那里,而是在应用程序委托之前,NSApplication调用的某些内容中。很可能是在添加的库或框架中。IIRC,nib中的循环引用也会导致这种情况。查看主窗口笔尖。您确定它位于堆栈顶部吗?它是标准的主函数内容,不能成为问题的根源。它只表示从RootViewController加载的视图 #import <UIKit/UIKit.h> int main(int argc, char *argv[]) { NSAutoreleasePo

当我启动应用程序时,它就泄漏了。

泄漏不在那里,而是在应用程序委托之前,NSApplication调用的某些内容中。很可能是在添加的库或框架中。IIRC,nib中的循环引用也会导致这种情况。查看主窗口笔尖。

您确定它位于堆栈顶部吗?它是标准的主函数内容,不能成为问题的根源。它只表示从RootViewController加载的视图
#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; 
}