qtmux: prevent leaking hdlr name
This commit is contained in:
parent
eed915a6fb
commit
1da893ba68
@ -2802,6 +2802,8 @@ atom_hdlr_set_type (AtomHDLR * hdlr, AtomsContext * context, guint32 comp_type,
|
|||||||
static void
|
static void
|
||||||
atom_hdlr_set_name (AtomHDLR * hdlr, char *name)
|
atom_hdlr_set_name (AtomHDLR * hdlr, char *name)
|
||||||
{
|
{
|
||||||
|
if (hdlr->name)
|
||||||
|
g_free (hdlr->name);
|
||||||
hdlr->name = g_strdup (name);
|
hdlr->name = g_strdup (name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user