From 1da893ba683f7240f31e8b15094d3a49725fa23c Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 16 Feb 2010 17:13:09 +0100 Subject: [PATCH] qtmux: prevent leaking hdlr name --- gst/qtmux/atoms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/qtmux/atoms.c b/gst/qtmux/atoms.c index d35104e..647bd7e 100644 --- a/gst/qtmux/atoms.c +++ b/gst/qtmux/atoms.c @@ -2802,6 +2802,8 @@ atom_hdlr_set_type (AtomHDLR * hdlr, AtomsContext * context, guint32 comp_type, static void atom_hdlr_set_name (AtomHDLR * hdlr, char *name) { + if (hdlr->name) + g_free (hdlr->name); hdlr->name = g_strdup (name); } -- 2.7.4