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 Tim-Philipp Müller
parent a7f21fedc5
commit f077d937ad

View file

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