]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix a small leak.
authorDamiano Galassi <damiog@gmail.com>
Tue, 13 Jun 2017 07:51:04 +0000 (09:51 +0200)
committerDamiano Galassi <damiog@gmail.com>
Tue, 13 Jun 2017 07:51:04 +0000 (09:51 +0200)
macosx/HBCore.m

index 39e6be5ac6ec7122567deb65d091c4d91aeb5e4a..2d2f592bc22344f8bea3c178f07e8a178ae8b8e7 100644 (file)
@@ -456,7 +456,6 @@ typedef void (^HBCoreCleanupHandler)(void);
     }
 
     CFStringRef matrixKey = NULL;
-
     switch (matrix)
     {
         case HB_COLR_MAT_SMPTE170M:
@@ -483,6 +482,8 @@ typedef void (^HBCoreCleanupHandler)(void);
 
     CGColorSpaceRef colorSpace = CVImageBufferCreateColorSpaceFromAttachments(attachments);
 
+    CFRelease(attachments);
+
     return colorSpace;
 }