From 77d48abfabdc6f73705fb2ebc3dd8babe5030527 Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Wed, 28 Jan 2015 00:53:59 +1100 Subject: [PATCH] applemedia: vtdec: fix CMBlockBufferRef leak Fix huge leak that went unnoticed for too long. Oops. --- sys/applemedia/vtdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 5903286147..61efe9d151 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -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;