From: Idar Tollefsen Date: Tue, 11 Jan 2011 13:27:35 +0000 (+0100) Subject: queue2: Fixes memory leak on out_flushing error in gst_queue2_create_read. X-Git-Tag: RELEASE-0.10.33~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46a786cee66cb2193a22000950246f1486f48642;p=platform%2Fupstream%2Fgstreamer.git queue2: Fixes memory leak on out_flushing error in gst_queue2_create_read. https://bugzilla.gnome.org/show_bug.cgi?id=646972 --- diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index d8c07db..db6b7b4 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -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: