From: Sebastian Dröge Date: Sun, 19 Dec 2010 09:22:29 +0000 (+0100) Subject: capsdebug: Don't leak pad templates created from static pad templates X-Git-Tag: RELEASE-0.10.27~212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdc03948cefc8c1a455595f23fe6649b397b78af;p=platform%2Fupstream%2Fgst-plugins-good.git capsdebug: Don't leak pad templates created from static pad templates --- diff --git a/gst/debugutils/gstcapsdebug.c b/gst/debugutils/gstcapsdebug.c index f4a1743ce..469408c56 100644 --- a/gst/debugutils/gstcapsdebug.c +++ b/gst/debugutils/gstcapsdebug.c @@ -103,8 +103,7 @@ gst_caps_debug_init (GstCapsDebug * capsdebug, { capsdebug->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get - (&gst_caps_debug_src_template), "src"); + gst_pad_new_from_static_template (&gst_caps_debug_src_template, "src"); gst_pad_set_getcaps_function (capsdebug->srcpad, GST_DEBUG_FUNCPTR (gst_caps_debug_getcaps)); gst_pad_set_acceptcaps_function (capsdebug->srcpad, @@ -112,8 +111,7 @@ gst_caps_debug_init (GstCapsDebug * capsdebug, gst_element_add_pad (GST_ELEMENT (capsdebug), capsdebug->srcpad); capsdebug->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get - (&gst_caps_debug_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_caps_debug_sink_template, "sink"); gst_pad_set_chain_function (capsdebug->sinkpad, GST_DEBUG_FUNCPTR (gst_caps_debug_sink_chain)); gst_pad_set_bufferalloc_function (capsdebug->sinkpad,