diff --git a/gst/qtmux/atoms.c b/gst/qtmux/atoms.c index d35104eeb7..647bd7ec4c 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); }