qtmux: prevent leaking hdlr name

This commit is contained in:
Mark Nauwelaerts 2010-02-16 17:13:09 +01:00 committed by Tim-Philipp Müller
parent bcc9fe0463
commit 589f70955c

View file

@ -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);
}