summaryrefslogtreecommitdiffstats
path: root/libhb/platform
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-02-24 19:15:54 +0100
committerDamiano Galassi <[email protected]>2017-02-24 19:23:03 +0100
commit8eb2de4aaf3e64645c5e3eab9c2ff9a761b2e735 (patch)
treeb5498ad42b78a6b16ed3715d8372f444e6a1d5a8 /libhb/platform
parentb2ca0b4f50c2cdea14dcb98f050265377c49b569 (diff)
encca_aac: fix a small leak
Diffstat (limited to 'libhb/platform')
-rw-r--r--libhb/platform/macosx/encca_aac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/platform/macosx/encca_aac.c b/libhb/platform/macosx/encca_aac.c
index c60048945..5716cf399 100644
--- a/libhb/platform/macosx/encca_aac.c
+++ b/libhb/platform/macosx/encca_aac.c
@@ -465,6 +465,7 @@ static hb_buffer_t* Encode(hb_work_object_t *w)
// only drop the output buffer if it's actually empty
if (!npackets || odesc.mDataByteSize <= 0)
{
+ hb_buffer_close(&obuf);
return NULL;
}