请帮我解决这个内存泄漏问题。在泄漏工具中,它显示了一个泄漏:NSCFString (32 bytes) in library Foundation
Responsible Frame: NSPropertyListSerialization
。我正在释放错误,但仍然存在泄漏。我错过了什么?非常感谢!
NSPropertyListFormat format;
NSString *anError = nil;
id plist;
plist = [NSPropertyListSerialization propertyListFromData:rawCourseArray mutabilityOption:NSPropertyListImmutable format:&format errorDescription:&anError];
if (!plist){
[anError release];
}
NSArray *entries = (NSArray *)plist;
for (NSDictionary *entry in entries)
{
// DO SOMETHING
}