diff options
author | David Schleef <ds@schleef.org> | 2010-11-27 20:13:38 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-11-30 18:54:46 -0800 |
commit | 159e2768d6729aea2caffb14a6f56a7055d4879f (patch) | |
tree | 8039b1b14d7290e2f78c64124e0ba9236a7bb5be /gst/liveadder | |
parent | 4eee2dc95d4ae84462426e9487c2a70b07de01a7 (diff) | |
download | gstreamer-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.c | 7 |
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, |