glimagesink: fix query leak in test

https://bugzilla.gnome.org/show_bug.cgi?id=766663
This commit is contained in:
Guillaume Desmottes 2016-05-19 13:31:56 +03:00 committed by Sebastian Dröge
parent e071510b12
commit 0d6359d4a2

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