【发布时间】:2013-08-14 14:30:49
【问题描述】:
我不清楚以下内容对内存管理的影响:
NSDictionary* props = (__bridge NSDictionary*) CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);
由于CGImageSourceCopyPropertiesAtIndex 函数名称中有Copy,我拥有CFDictionaryRef 并且必须释放它。但是,由于它被转换为NSDictionary,我不能调用[props release]。什么是正确的治疗方法?
【问题讨论】:
标签: ios cocoa automatic-ref-counting core-foundation