diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 45f3d44e19..5d05e7617d 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -2642,6 +2642,7 @@ out_flushing: GST_DEBUG_OBJECT (queue, "we are flushing"); GST_QUEUE2_MUTEX_UNLOCK (queue); + gst_object_unref (queue); return ret; } out_unexpected: