From 5f255c48654998d14b5c69bc9003a807ce5ea697 Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Sat, 27 Aug 2016 11:14:47 -0400 Subject: [PATCH] Fixing memory leak where transferring of property dictionary to ARC. --- InstallerLauncher/SUInstallerLauncher.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InstallerLauncher/SUInstallerLauncher.m b/InstallerLauncher/SUInstallerLauncher.m index e6ee1bd0..58b34270 100644 --- a/InstallerLauncher/SUInstallerLauncher.m +++ b/InstallerLauncher/SUInstallerLauncher.m @@ -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];