From a0679f9e56ba40e3f15d38e592a8bbdcb97b13fd Mon Sep 17 00:00:00 2001 From: Antoine Tremblay Date: Fri, 20 Jun 2008 08:45:13 +0000 Subject: [PATCH] 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. --- gst/gdp/gstgdppay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);