projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcc1522
)
rtpmux: Fix leak Fixed a leak discovered by Laurent Glayal <spegle@yahoo.fr>
author
Olivier Crête
<olivier.crete@collabora.co.uk>
Tue, 28 Apr 2009 20:03:19 +0000
(16:03 -0400)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 16:33:46 +0000
(16:33 +0000)
gst/rtpmanager/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpmux.c
b/gst/rtpmanager/gstrtpmux.c
index
e62f8a1
..
ecef0c7
100644
(file)
--- a/
gst/rtpmanager/gstrtpmux.c
+++ b/
gst/rtpmanager/gstrtpmux.c
@@
-431,12
+431,16
@@
same_clock_rate_fold (gpointer item, GValue * ret, gpointer user_data)
const GstCaps *accumcaps;
GstCaps *intersect;
- if (pad == mypad)
+ if (pad == mypad) {
+ gst_object_unref (pad);
return TRUE;
+ }
peercaps = gst_pad_peer_get_caps (pad);
- if (!peercaps)
+ if (!peercaps) {
+ gst_object_unref (pad);
return TRUE;
+ }
othercaps = gst_caps_intersect (peercaps,
gst_pad_get_pad_template_caps (pad));
@@
-451,6
+455,7
@@
same_clock_rate_fold (gpointer item, GValue * ret, gpointer user_data)
g_value_take_boxed (ret, intersect);
gst_caps_unref (othercaps);
+ gst_object_unref (pad);
return !gst_caps_is_empty (intersect);
}