【发布时间】:2011-07-05 05:38:48
【问题描述】:
我是第一次使用检漏仪。 我的代码中有两次泄漏,当我看到源代码时,它会显示在这两个粗体语句中......
- (id) initWithFrame: (CGRect) frame
{
[self LoadMoviePlayer];
**self= [super initWithFrame:frame];**
if (self==[super initWithFrame:frame])
{
CAEAGLLayer* eaglLayer = (CAEAGLLayer*) self.layer;
eaglLayer.opaque = YES;
- (void) applicationDidFinishLaunching: (UIApplication*) application
{
CGRect screenBounds = [[UIScreen mainScreen] bounds];
m_window = [[UIWindow alloc] initWithFrame: screenBounds];
**m_view = [[GLView alloc] initWithFrame: screenBounds];**
[m_window addSubview: m_view];
[m_window makeKeyAndVisible];
}
不知道下一步该怎么做才能解决问题。
【问题讨论】:
标签: ipad memory-leaks xcode-instruments