summaryrefslogtreecommitdiff
authorStefan Kost <ensonic@users.sf.net>2009-03-31 14:16:04 (GMT)
committer Stefan Kost <ensonic@users.sf.net>2009-03-31 14:16:04 (GMT)
commit605ded52927528bada4a79844ca8d2316aae98eb (patch) (side-by-side diff)
tree5b8abfae685615106e345ebb020f1fde300feebe
parent5ac6b84475657f7e76bb092273e6daed0c26d0dd (diff)
downloadgst-plugins-good-605ded52927528bada4a79844ca8d2316aae98eb.zip
gst-plugins-good-605ded52927528bada4a79844ca8d2316aae98eb.tar.gz
matroska: don't leak serialized values when writing tags
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/matroska/matroska-mux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index bc5af3d..87ad477 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -1846,6 +1846,7 @@ gst_matroska_mux_write_simple_tag (const GstTagList * list, const gchar * tag,
gst_ebml_write_ascii (ebml, GST_MATROSKA_ID_TAGNAME, tagname_mkv);
gst_ebml_write_utf8 (ebml, GST_MATROSKA_ID_TAGSTRING, dest);
gst_ebml_write_master_finish (ebml, simpletag_master);
+ g_free (dest);
} else {
GST_WARNING ("Can't transform tag '%s' to string", tagname_mkv);
}