0
请看下面的代码。当我运行我的应用程序使用性能工具检查泄漏运行...显示在此代码泄漏....帮我解决内存泄漏问题
请帮我解决下面的代码中的任何泄漏。
感谢您的帮助......
NSString* imgName = [[NSString alloc] initWithFormat:
@"QW%d",frontCardImgNo] ;
myGridView.imgView.image = [UIImage imageWithContentsOfFile:
[[NSBundle mainBundle] pathForResource: imgName ofType:@"jpg"]];
[imgName release];
[myGridView.pView addSubview:myGridView.imgView];
这里肯定没有泄漏。仪器可能会出现误报,并且在泄漏发生的位置并不总是精确的。尝试“构建和分析”,也许分析仪会抓住一些东西。 – Costique 2010-12-15 05:42:22
该代码没有内存泄漏。 – Rog 2010-12-15 05:42:47