templatematch: fix buffer leak in test

Need to call gst_check_drop_buffers() to unref the buffers exchanged
during the test.

https://bugzilla.gnome.org/show_bug.cgi?id=767159
This commit is contained in:
Guillaume Desmottes 2016-06-02 13:53:38 +02:00 committed by Sebastian Dröge
parent 0d6359d4a2
commit 9106bf573a

View file

@ -144,6 +144,7 @@ GST_START_TEST (test_match_blue_square)
gst_bus_set_flushing (bus, TRUE);
gst_object_unref (bus);
gst_caps_unref (caps);
gst_check_drop_buffers ();
gst_pad_set_active (srcpad, FALSE);
gst_pad_set_active (sinkpad, FALSE);
gst_object_unref (srcpad);