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 <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.
This commit is contained in:
Antoine Tremblay 2008-06-20 08:45:13 +00:00 committed by Tim-Philipp Müller
parent 4822aa7c7b
commit a0679f9e56

View 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);