glimagesink: fix query leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 19 May 2016 10:31:56 +0000 (13:31 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 21 Jun 2016 07:52:47 +0000 (10:52 +0300)
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.