【问题标题】:Memory Leak in Application Main()应用程序 Main() 中的内存泄漏
【发布时间】:2011-01-23 09:26:11
【问题描述】:

以下代码在 in retVal 行产生内存泄漏:

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;

关于如何解决的任何想法?

【问题讨论】:

标签: iphone xcode memory delegates memory-leaks


【解决方案1】:

这可能只是意味着 with UIApplicationMain() 创建的东西正在泄漏,您提供的代码很好。 您应该对 Instruments 有更详细的了解。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-03-28
    • 2010-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-24
    相关资源
    最近更新 更多