From: Alessandro Decina Date: Tue, 27 Jan 2015 13:53:59 +0000 (+1100) Subject: applemedia: vtdec: fix CMBlockBufferRef leak X-Git-Tag: 1.19.3~507^2~9444 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77d48abfabdc6f73705fb2ebc3dd8babe5030527;p=platform%2Fupstream%2Fgstreamer.git applemedia: vtdec: fix CMBlockBufferRef leak Fix huge leak that went unnoticed for too long. Oops. --- diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 5903286..61efe9d 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;