Original commit message from CVS:
fix a caps leak
2005-07-10 Thomas Vander Stichele <thomas at apestaart dot org>
+ * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked):
+ fix a caps leak
+
+2005-07-10 Thomas Vander Stichele <thomas at apestaart dot org>
+
* gst/base/gstbasesrc.c: (gst_base_src_class_init),
(gst_base_src_finalize):
add finalize method and clean up properly
{
GstCaps *srccaps;
GstCaps *sinkcaps;
+ gboolean ret;
srccaps = gst_pad_get_caps_unlocked (src);
sinkcaps = gst_pad_get_caps_unlocked (sink);
GST_CAT_DEBUG (GST_CAT_CAPS,
"intersection caps %p %" GST_PTR_FORMAT, icaps, icaps);
- if (!icaps || gst_caps_is_empty (icaps))
+ if (!icaps || gst_caps_is_empty (icaps)) {
+ gst_caps_unref (icaps);
return FALSE;
+ }
}
return TRUE;