解析时的内存问题

时间:2013-01-31 11:57:30

标签: iphone ios objective-c ipad memory-management

下面的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

1 个答案:

答案 0 :(得分:3)

initwithIstructPageDetails应该是initWithIstructPageDetails:help,因为分析器会查看可可命名约定

由于代码看起来不错,这是我眼中唯一的可能性