tests: selector: unref peer pad
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 10 Jan 2011 12:59:19 +0000 (09:59 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 10 Jan 2011 13:04:46 +0000 (10:04 -0300)
Do not forget to unref peer's pad on output-selector negotiation
tests

tests/check/elements/selector.c

index 3c96890..0f91166 100644 (file)
@@ -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,