From e1e81ca16d004a70021249d7dfd164c35b43d7a1 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 10 Jan 2011 09:59:19 -0300 Subject: [PATCH] tests: selector: unref peer pad Do not forget to unref peer's pad on output-selector negotiation tests --- tests/check/elements/selector.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/check/elements/selector.c b/tests/check/elements/selector.c index 3c96890..0f91166 100644 --- a/tests/check/elements/selector.c +++ b/tests/check/elements/selector.c @@ -435,6 +435,7 @@ GST_START_TEST (test_output_selector_getcaps_none); /* in 'none' mode, the getcaps returns the template, which is ANY */ g_assert (gst_caps_is_any (caps)); gst_caps_unref (caps); + gst_object_unref (pad); } fail_unless (gst_element_set_state (sel, @@ -473,6 +474,7 @@ GST_START_TEST (test_output_selector_getcaps_all); g_assert (gst_caps_is_equal (caps, expected)); gst_caps_unref (caps); + gst_object_unref (pad); } gst_caps_unref (expected); @@ -513,6 +515,7 @@ GST_START_TEST (test_output_selector_getcaps_active); g_assert (gst_caps_is_equal (caps, expected)); gst_caps_unref (caps); + gst_object_unref (pad); } fail_unless (gst_element_set_state (sel, -- 2.7.4