]> granicus.if.org Git - handbrake/commitdiff
encca_aac: fix a small leak
authorDamiano Galassi <damiog@gmail.com>
Fri, 24 Feb 2017 18:15:54 +0000 (19:15 +0100)
committerDamiano Galassi <galad87@users.noreply.github.com>
Fri, 24 Feb 2017 18:23:03 +0000 (19:23 +0100)
libhb/platform/macosx/encca_aac.c

index c60048945cffac67ce118c62216fd67f6094e171..5716cf39924655a2cb7456ce29bffaab5c291b97 100644 (file)
@@ -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;
     }