+2006-07-14 Tim-Philipp Müller <tim at centricular dot net>
+
+ Patch by: Antoine Tremblay <hexa00 at gmail com>
+
+ * gst/gstutils.c: (gst_element_unlink):
+ Free iterator when done (#347311).
+
+ * tests/check/gst/gstutils.c: (GST_START_TEST), (gst_utils_suite):
+ And add a test case for this.
+
2006-07-14 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:
GST_END_TEST;
+GST_START_TEST (test_element_unlink)
+{
+ GstElement *src, *sink;
+
+ src = gst_element_factory_make ("fakesrc", NULL);
+ sink = gst_element_factory_make ("fakesink", NULL);
+ fail_unless (gst_element_link (src, sink) != FALSE);
+ gst_element_unlink (src, sink);
+ gst_object_unref (src);
+ gst_object_unref (sink);
+}
+
+GST_END_TEST;
+
Suite *
gst_utils_suite (void)
{
tcase_add_test (tc_chain, test_parse_bin_from_description);
#endif
tcase_add_test (tc_chain, test_element_found_tags);
+ tcase_add_test (tc_chain, test_element_unlink);
return s;
}