gst/gdp/gstgdppay.c: Fix a buffer memleak and remove a confusing and wrong debug...
authorAntoine Tremblay <hexa00@gmail.com>
Fri, 20 Jun 2008 08:45:13 +0000 (08:45 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2012 00:54:32 +0000 (01:54 +0100)
Original commit message from CVS:
Patch by: Antoine Tremblay <hexa00 at gmail dot com>
* 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

index c712d11..c4b7bf9 100644 (file)
@@ -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);