Когда я высвобождать в течение цикла, анализ показать ошибку:CFRelease в течение ошибки контура: Некорректное декремент счетчика ссылок на объект, который не принадлежит в данный момент вызывающей
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
Что я делаю неправильно?
for (size_t i = 0; i < frameCount; ++i) {
NSDictionary *dict = (NSDictionary*)CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(gifSource, i, NULL));
NSDictionary *gifDict = [dict valueForKey:(NSString*)kCGImagePropertyGIFDictionary];
[delayTimes addObject:[gifDict valueForKey:(NSString*)kCGImagePropertyGIFDelayTime]];
totalTime = totalTime + [[gifDict valueForKey:(NSString*)kCGImagePropertyGIFDelayTime] floatValue];
CFRelease((__bridge CFTypeRef)(dict)); //Analyze showgin error here.
}