Fixing memory leak where transferring of property dictionary to ARC.

This commit is contained in:
Michel Fortin committed 2016-08-27 11:20:34 -04:00
1 parent fb2aea0d86
commit 5f255c4865
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@
size_t imageCount = CGImageSourceGetCount(imageSource);
for (size_t imageIndex = 0; imageIndex < imageCount; imageIndex++) {
CFDictionaryRef cfProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, imageIndex, (CFDictionaryRef)@{});
NSDictionary *properties = (__bridge NSDictionary *)(cfProperties);
NSDictionary *properties = CFBridgingRelease(cfProperties);
NSNumber *pixelWidth = properties[(const NSString *)kCGImagePropertyPixelWidth];
NSNumber *pixelHeight = properties[(const NSString *)kCGImagePropertyPixelHeight];