From 8b1eeb5a6aaf596fce05f719776f2698ac7f4eb2 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 22 Jun 2007 10:12:15 +0000 Subject: Fix memory leaks. Original commit message from CVS: * ext/flac/gstflactag.c: (gst_flac_tag_init): * gst/interleave/deinterleave.c: (deinterleave_init), (deinterleave_sink_link): * gst/interleave/interleave.c: (interleave_init): * gst/median/gstmedian.c: (gst_median_init): * gst/oldcore/gstmultifilesrc.c: (gst_multifilesrc_init): Fix memory leaks. * tests/check/elements/id3demux.c: (pad_added_cb): Remove unused variable. --- ext/flac/gstflactag.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/flac/gstflactag.c') diff --git a/ext/flac/gstflactag.c b/ext/flac/gstflactag.c index db0fa2a4..247e1dea 100644 --- a/ext/flac/gstflactag.c +++ b/ext/flac/gstflactag.c @@ -243,15 +243,13 @@ gst_flac_tag_init (GstFlacTag * tag) { /* create the sink and src pads */ tag->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get - (&flac_tag_sink_template), "sink"); + gst_pad_new_from_static_template (&flac_tag_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (tag), tag->sinkpad); gst_pad_set_chain_function (tag->sinkpad, GST_DEBUG_FUNCPTR (gst_flac_tag_chain)); tag->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get - (&flac_tag_src_template), "src"); + gst_pad_new_from_static_template (&flac_tag_src_template, "src"); gst_element_add_pad (GST_ELEMENT (tag), tag->srcpad); tag->buffer = NULL; -- cgit