interleave: fix message leaks in test

Flush the bus when cleaning up so pending messages are destroyed.

https://bugzilla.gnome.org/show_bug.cgi?id=766561
This commit is contained in:
Guillaume Desmottes 2016-05-17 12:52:43 +03:00 committed by Sebastian Dröge
parent 23c8f7128b
commit fb41b307a6

View file

@ -251,6 +251,7 @@ GST_START_TEST (test_interleave_2ch)
fail_unless (have_data == 2);
gst_bus_set_flushing (bus, TRUE);
gst_element_set_state (interleave, GST_STATE_NULL);
gst_element_set_state (queue, GST_STATE_NULL);
@ -377,6 +378,7 @@ GST_START_TEST (test_interleave_2ch_1eos)
fail_unless (have_data == 2);
gst_bus_set_flushing (bus, TRUE);
gst_element_set_state (interleave, GST_STATE_NULL);
gst_element_set_state (queue, GST_STATE_NULL);