From 8ed7ab29313679e0d9350ab64dd4f88a600cf241 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 26 Dec 2011 18:15:41 +0100 Subject: [PATCH] lamemp3enc: do not leak merged tags --- ext/lame/gstlamemp3enc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c index d2966973d2..b0d351bc1c 100644 --- a/ext/lame/gstlamemp3enc.c +++ b/ext/lame/gstlamemp3enc.c @@ -362,8 +362,10 @@ gst_lamemp3enc_set_format (GstAudioEncoder * enc, GstAudioInfo * info) GST_SECOND, lame->samplerate); gst_audio_encoder_set_latency (enc, latency, latency); - if (tags) + if (tags) { gst_audio_encoder_merge_tags (enc, tags, GST_TAG_MERGE_REPLACE); + gst_tag_list_free (tags); + } return TRUE;