applemedia: vtdec: fix CMBlockBufferRef leak
authorAlessandro Decina <alessandro.d@gmail.com>
Tue, 27 Jan 2015 13:53:59 +0000 (00:53 +1100)
committerAlessandro Decina <alessandro.d@gmail.com>
Thu, 29 Jan 2015 13:34:08 +0000 (00:34 +1100)
Fix huge leak that went unnoticed for too long. Oops.

sys/applemedia/vtdec.c

index 5903286..61efe9d 100644 (file)
@@ -562,6 +562,7 @@ cm_sample_buffer_from_gst_buffer (GstVtdec * vtdec, GstBuffer * buf)
   status =
       CMSampleBufferCreate (NULL, bbuf, TRUE, 0, 0, vtdec->format_description,
       1, 1, time_array, 0, NULL, &sbuf);
+  CFRelease (bbuf);
   if (status != noErr)
     goto sample_error;