summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-06-13 09:51:04 +0200
committerDamiano Galassi <[email protected]>2017-06-13 09:51:04 +0200
commit3c282d7ac9a2a99e0fab6019046b4e33e42581f1 (patch)
tree6f34ac553df13e83d08e15f16805fa0eeea68a6d
parent0c23a9f435dd9c9d53bf698bc4dbd6ef47c53b93 (diff)
MacGui: fix a small leak.
-rw-r--r--macosx/HBCore.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m
index 39e6be5ac..2d2f592bc 100644
--- a/macosx/HBCore.m
+++ b/macosx/HBCore.m
@@ -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;
}