summaryrefslogtreecommitdiff
path: root/tools/element-templates
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-08-09 13:27:00 +0200
committerTim-Philipp Müller <tim@centricular.com>2014-08-10 11:29:56 +0100
commit9e50a4b8eb6877c9b6ffc2db16b05c0825fd544b (patch)
treef7c19a740581c64658f4bd994e309c25c06c0ced /tools/element-templates
parent961a704a74ed0804f7bcdd8bbd787180aca467fa (diff)
downloadgstreamer-plugins-bad-9e50a4b8eb6877c9b6ffc2db16b05c0825fd544b.tar.gz
element-maker: Avoid leaking copy of caps object
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
Diffstat (limited to 'tools/element-templates')
-rw-r--r--tools/element-templates/srcpad2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/element-templates/srcpad b/tools/element-templates/srcpad
index d1f799267..1afd7e76e 100644
--- 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;