Iphone JSONValue显示内存泄漏
然后我补充说Iphone JSONValue显示内存泄漏,iphone,json,sbjson,Iphone,Json,Sbjson,然后我补充说 NSDictionary *makeJSON=[strValue JSONValue]; 但我犯了这样的错误 [makeJSON release]; makeJSON = nil; 然后我加上 ****-[CFDictionary release]: message sent to deallocated instance 我又犯了这样的错误 NSDictionary *makeJSON=[[strValue JSONValue]retain]; 此外,
NSDictionary *makeJSON=[strValue JSONValue];
但我犯了这样的错误
[makeJSON release];
makeJSON = nil;
然后我加上
****-[CFDictionary release]: message sent to deallocated instance
我又犯了这样的错误
NSDictionary *makeJSON=[[strValue JSONValue]retain];
此外,我打印makeJSON的**retain计数,它显示2
需要帮助!!!!!请告诉我哪里出了问题您是否检查了这条线的删除
****-[CFDictionary release]: message sent to deallocated instance
Bcoz您没有分配此对象,或者您打算释放此对象,因为它会给出此类错误。Instruments显示泄漏的对象及其创建位置。这可能不是泄漏的地方。检查此对象的去向以及其上的所有保留/释放。在这里运行静态分析器可能会给您一些好的提示!
****-[CFDictionary release]: message sent to deallocated instance
[makeJSON release];