glimagesink: fix query leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 19 May 2016 10:31:56 +0000 (13:31 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:20 +0000 (19:32 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=766663

tests/check/elements/glimagesink.c

index cc32015..b0f9e30 100644 (file)
@@ -186,6 +186,7 @@ GST_START_TEST (test_query_drain)
    * releases the buffers it currently owns, upon drain query. */
   query = gst_query_new_drain ();
   DO_CALL (do_peer_query_func, query);
+  gst_query_unref (query);
 
   /* Transfer buffers back to the downstream pool to be release
    * properly. This also make sure that all buffers are returned.