From: Matthew Waters Date: Wed, 8 May 2019 04:48:43 +0000 (+1000) Subject: vkqueue: unly unref the context query if it succeeds X-Git-Tag: 1.19.3~507^2~3259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c568d1a673183efcbd1d03625395e14b08dd624e;p=platform%2Fupstream%2Fgstreamer.git vkqueue: unly unref the context query if it succeeds --- diff --git a/gst-libs/gst/vulkan/gstvkqueue.c b/gst-libs/gst/vulkan/gstvkqueue.c index 8d187ad2ac..5052525e66 100644 --- a/gst-libs/gst/vulkan/gstvkqueue.c +++ b/gst-libs/gst/vulkan/gstvkqueue.c @@ -266,12 +266,12 @@ gst_vulkan_queue_run_context_query (GstElement * element, gst_query_parse_context (query, &context); if (context) gst_context_get_vulkan_queue (context, queue); + + gst_query_unref (query); } GST_DEBUG_OBJECT (element, "found queue %p", *queue); - gst_query_unref (query); - if (*queue) return TRUE;