From: Antoine Tremblay Date: Fri, 20 Jun 2008 08:45:13 +0000 (+0000) Subject: gst/gdp/gstgdppay.c: Fix a buffer memleak and remove a confusing and wrong debug... X-Git-Tag: 1.19.3~507^2~15086 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0679f9e56ba40e3f15d38e592a8bbdcb97b13fd;p=platform%2Fupstream%2Fgstreamer.git gst/gdp/gstgdppay.c: Fix a buffer memleak and remove a confusing and wrong debug output. Original commit message from CVS: Patch by: Antoine Tremblay * gst/gdp/gstgdppay.c: (gst_gdp_pay_reset): Fix a buffer memleak and remove a confusing and wrong debug output. Fixes bug #538663. --- diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index c712d11072..c4b7bf9664 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -193,10 +193,11 @@ gst_gdp_pay_reset (GstGDPPay * this) GstBuffer *buffer; buffer = GST_BUFFER_CAST (this->queue->data); - GST_DEBUG_OBJECT (this, "Pushing queued GDP buffer %p", buffer); /* delete buffer from queue now */ this->queue = g_list_delete_link (this->queue, this->queue); + + gst_buffer_unref (buffer); } if (this->caps) { gst_caps_unref (this->caps);