From 589f70955cda5e4064c42c586b62ad02d0c80e38 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/quicktime/atoms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/quicktime/atoms.c b/gst/quicktime/atoms.c index d35104eeb7..647bd7ec4c 100644 --- a/gst/quicktime/atoms.c +++ b/gst/quicktime/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); }