【发布时间】:2013-01-15 12:29:44
【问题描述】:
下面的 xmlparser 代码显示内存警告,我暂时无法修复它任何线索请帮助我
if ([elementName isEqualToString:@"page_details"])
{
IstructPageDetails *objIstructPageDetails = [[IstructPageDetails alloc] initwithIstructPageDetails:attributeDict];
[m_objmuteArrOutput addObject:objIstructPageDetails];
[objIstructPageDetails release];
}
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
【问题讨论】:
-
该代码对我来说看起来不错(假设
m_objmuteArrOutput是NSMutableArray当然,顾名思义)。您确定是它的 that 行导致了警告消息吗?
标签: iphone ios objective-c ipad memory-management