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];