[0.11] gst-plugins-ugly: lamemp3enc: do not leak merged tags

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 06:17:27 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: ee31252201ffc56762499f324b628a4a0b1b2aee
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=ee31252201ffc56762499f324b628a4a0b1b2aee

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Dec 26 18:15:41 2011 +0100

lamemp3enc: do not leak merged tags

---

 ext/lame/gstlamemp3enc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c
index d296697..b0d351b 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;
 



More information about the gstreamer-commits mailing list