下面的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
答案 0 :(得分:3)
initwithIstructPageDetails应该是initWithIstructPageDetails:help,因为分析器会查看可可命名约定
由于代码看起来不错,这是我眼中唯一的可能性