summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}