diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2014-08-09 13:27:00 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-08-10 11:29:56 +0100 |
commit | 9e50a4b8eb6877c9b6ffc2db16b05c0825fd544b (patch) | |
tree | f7c19a740581c64658f4bd994e309c25c06c0ced /tools/element-templates | |
parent | 961a704a74ed0804f7bcdd8bbd787180aca467fa (diff) | |
download | gstreamer-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/srcpad | 2 |
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; |