mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
629b2a910b
commit
4a19260c75
2 changed files with 8 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue