Commit b0637a07 authored by Victorien Le Couviour--Tuffet's avatar Victorien Le Couviour--Tuffet Committed by Thomas Guillem

player: fix crash caused by use after free

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 3fdba303
......@@ -3326,7 +3326,8 @@ vlc_player_VoutOSDCallback(vlc_object_t *this, const char *var,
newval.psz_string : var_GetString(vout, "deinterlace-mode");
vouts_osd_Message(&vout, 1, _("Deinterlace %s (%s)"),
on == 1 ? _("On") : _("Off"), mode);
free(mode);
if (!varmode)
free(mode);
}
else if (strcmp(var, "sub-margin") == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment