gst/gstutils.c: Fix a caps memory leak introduced by the last change.

Original commit message from CVS:
* gst/gstutils.c: (gst_element_get_compatible_pad):
Fix a caps memory leak introduced by the last change.
This commit is contained in:
Sebastian Dröge 2008-12-09 16:23:58 +00:00
parent 629b2a910b
commit 4a19260c75
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-12-09 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/gstutils.c: (gst_element_get_compatible_pad):
Fix a caps memory leak introduced by the last change.
2008-12-09 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/gstutils.c: (gst_element_get_compatible_pad):

View file

@ -989,6 +989,8 @@ gst_element_get_compatible_pad (GstElement * element, GstPad * pad,
intersection = temp2;
if (!gst_caps_is_empty (intersection)) {
gst_caps_unref (intersection);
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS,
"found existing unlinked compatible pad %s:%s",
GST_DEBUG_PAD_NAME (current));
@ -996,6 +998,7 @@ gst_element_get_compatible_pad (GstElement * element, GstPad * pad,
return current;
}
gst_caps_unref (intersection);
}
GST_CAT_DEBUG (GST_CAT_ELEMENT_PADS, "unreffing pads");