From 46a786cee66cb2193a22000950246f1486f48642 Mon Sep 17 00:00:00 2001 From: Idar Tollefsen Date: Tue, 11 Jan 2011 14:27:35 +0100 Subject: [PATCH] queue2: Fixes memory leak on out_flushing error in gst_queue2_create_read. https://bugzilla.gnome.org/show_bug.cgi?id=646972 --- plugins/elements/gstqueue2.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.7.4