projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
961a704
)
element-maker: Avoid leaking copy of caps object
author
Sebastian Rasmussen
<sebras@hotmail.com>
Sat, 9 Aug 2014 11:27:00 +0000
(13:27 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sun, 10 Aug 2014 10:29:56 +0000
(11:29 +0100)
gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734539
tools/element-templates/srcpad
patch
|
blob
|
history
diff --git
a/tools/element-templates/srcpad
b/tools/element-templates/srcpad
index
d1f7992
..
1afd7e7
100644
(file)
--- a/
tools/element-templates/srcpad
+++ b/
tools/element-templates/srcpad
@@
-76,7
+76,7
@@
gst_replace_src_getcaps (GstPad *pad)
GST_DEBUG_OBJECT(replace, "getcaps");
- caps = gst_
caps_copy (gst_pad_get_pad_template_caps (pad)
);
+ caps = gst_
pad_get_pad_template_caps (pad
);
gst_object_unref (replace);
return caps;