+2006-07-21 Wim Taymans <wim@fluendo.com>
+
+ * tests/check/gst/gstpad.c: (GST_START_TEST):
+ Fix leak in test.
+
2006-07-20 Stefan Kost <ensonic@users.sf.net>
* gst/gstparse.c: (gst_parse_launch):
caps = gst_caps_from_string ("foo/bar");
gst_pad_set_caps (src, caps);
gst_pad_set_caps (sink, caps);
+ ASSERT_CAPS_REFCOUNT (caps, "caps", 3);
MAIN_START_THREADS (5, thread_link_unlink, NULL);
for (i = 0; i < 1000; ++i) {
THREAD_SWITCH ();
}
MAIN_STOP_THREADS ();
+
+ ASSERT_CAPS_REFCOUNT (caps, "caps", 3);
+ gst_caps_unref (caps);
+
+ ASSERT_CAPS_REFCOUNT (caps, "caps", 2);
+ gst_object_unref (src);
+ gst_object_unref (sink);
}
GST_END_TEST;
fail_if (strcmp (gst_flow_get_name (ret), "unknown"));
quark = gst_flow_to_quark (ret);
fail_unless (quark == 0);
-
}
GST_END_TEST;