From f877920db7484a2d3c53158055a91db3d63b217b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 28 Nov 2011 13:10:01 +0000 Subject: [PATCH] various: fix pad template ref leaks https://bugzilla.gnome.org/show_bug.cgi?id=662664 --- ext/lame/gstlame.c | 8 ++++---- ext/lame/gstlamemp3enc.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 349d290817..f36a0b26e5 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -354,10 +354,10 @@ gst_lame_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lame_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lame_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_lame_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_lame_sink_template); gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", "Codec/Encoder/Audio", "High-quality free MP3 encoder (deprecated)", diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c index 40f9a6fc19..d2966973d2 100644 --- a/ext/lame/gstlamemp3enc.c +++ b/ext/lame/gstlamemp3enc.c @@ -215,10 +215,10 @@ gst_lamemp3enc_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lamemp3enc_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lamemp3enc_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_lamemp3enc_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_lamemp3enc_sink_template); gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", "Codec/Encoder/Audio", "High-quality free MP3 encoder",