queue2: Fixes memory leak on out_flushing error in gst_queue2_create_read.
authorIdar Tollefsen <itollefs@cisco.com>
Tue, 11 Jan 2011 13:27:35 +0000 (14:27 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 7 Apr 2011 19:50:04 +0000 (20:50 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=646972

plugins/elements/gstqueue2.c

index d8c07db..db6b7b4 100644 (file)
@@ -1291,6 +1291,7 @@ gst_queue2_create_read (GstQueue2 * queue, guint64 offset, guint length,
 out_flushing:
   {
     GST_DEBUG_OBJECT (queue, "we are flushing");
+    gst_buffer_unref (buf);
     return GST_FLOW_WRONG_STATE;
   }
 read_error: