From 8ac30d4c260dc9b40be5a84de28b0a0fe68e6a8c Mon Sep 17 00:00:00 2001 From: Adrien SCH Date: Thu, 17 Apr 2014 13:04:00 +0000 Subject: [PATCH] matroskamux: fix the memory leak of language attribute https://bugzilla.gnome.org/show_bug.cgi?id=728418 --- gst/matroska/matroska-mux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 794a0cb346..76328fc0ed 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -809,6 +809,7 @@ gst_matroska_mux_handle_sink_event (GstCollectPads * pads, lang_code = gst_tag_get_language_code_iso_639_2B (lang); if (lang_code) { GST_INFO_OBJECT (pad, "Setting language to '%s'", lang_code); + g_free (context->language); context->language = g_strdup (lang_code); } else { GST_WARNING_OBJECT (pad, "Did not get language code for '%s'", lang);