selector: fix pad leaks in tests

setup_input_pad() creates a new pad so we should unref it once we're
done.

https://bugzilla.gnome.org/show_bug.cgi?id=765903
This commit is contained in:
Guillaume Desmottes 2016-05-02 08:43:04 +02:00 committed by Sebastian Dröge
parent 7c1a091404
commit d456f8e8d2

View file

@ -470,6 +470,8 @@ teardown_input_selector_with_2_streams (void)
gst_pad_set_active (output_pad, FALSE);
gst_check_teardown_sink_pad (selector);
gst_check_teardown_element (selector);
gst_object_unref (stream1_pad);
gst_object_unref (stream2_pad);
g_mutex_clear (&eos_probe_lock);
g_cond_clear (&eos_probe_cond);