summaryrefslogtreecommitdiff
path: root/gst/liveadder
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-11-27 20:13:38 -0800
committerDavid Schleef <ds@schleef.org>2010-11-30 18:54:46 -0800
commit159e2768d6729aea2caffb14a6f56a7055d4879f (patch)
tree8039b1b14d7290e2f78c64124e0ba9236a7bb5be /gst/liveadder
parent4eee2dc95d4ae84462426e9487c2a70b07de01a7 (diff)
downloadgstreamer-plugins-bad-159e2768d6729aea2caffb14a6f56a7055d4879f.tar.gz
Fix pad template memleaks
Pad templates returned by gst_static_pad_template_get() were not being unreffed.
Diffstat (limited to 'gst/liveadder')
-rw-r--r--gst/liveadder/liveadder.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c
index f92b37243..df6cda5de 100644
--- a/gst/liveadder/liveadder.c
+++ b/gst/liveadder/liveadder.c
@@ -191,11 +191,8 @@ gst_live_adder_class_init (GstLiveAdderClass * klass)
static void
gst_live_adder_init (GstLiveAdder * adder, GstLiveAdderClass * klass)
{
- GstPadTemplate *template;
-
- template = gst_static_pad_template_get (&gst_live_adder_src_template);
- adder->srcpad = gst_pad_new_from_template (template, "src");
- gst_object_unref (template);
+ adder->srcpad =
+ gst_pad_new_from_static_template (&gst_live_adder_src_template, "src");
gst_pad_set_getcaps_function (adder->srcpad,
GST_DEBUG_FUNCPTR (gst_pad_proxy_getcaps));
gst_pad_set_setcaps_function (adder->srcpad,