queue2: Fixes memory leak on out_flushing error in gst_queue2_create_read.

https://bugzilla.gnome.org/show_bug.cgi?id=646972
This commit is contained in:
Idar Tollefsen 2011-01-11 14:27:35 +01:00 committed by Tim-Philipp Müller
parent 419d117851
commit 46a786cee6

View 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: