下面的XML解析代码报出内存警告,不知道应该怎么解决,请高手帮忙。
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
initwithIstructPageDetails
应该是initWithIstructPageDetails:helps
因为分析器要根据cocoa的命名规则。