内存泄漏与NSMutableDictionary

时间:2010-07-29 17:17:04

标签: objective-c serialization memory-leaks nsmutabledictionary

对这行代码造成内存泄漏的原因感到困惑:

NSPropertyListFormat format;
NSMutableDictionary *d = [NSPropertyListSerialization propertyListWithData:rawCourseArray options:NSPropertyListMutableContainers format:&format error:NULL];

对修复的任何建议都非常感谢!

此致 乙

1 个答案:

答案 0 :(得分:0)

你有没有使用财产?

self.d = [NSPropertyListSerialization propertyListWithData:rawCourseArray options:NSPropertyListMutableContainers format:&format error:NULL];

我也遇到了类似的泄漏并使用属性(即self.d)

解决了它
相关问题