mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Fixing memory leak where transferring of property dictionary to ARC.
This commit is contained in:
1 parent
fb2aea0d86
commit
5f255c4865
1 file changed
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user