summaryrefslogtreecommitdiffstats
path: root/libass/ass_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_parse.c')
-rw-r--r--libass/ass_parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libass/ass_parse.c b/libass/ass_parse.c
index cac5760..776416d 100644
--- a/libass/ass_parse.c
+++ b/libass/ass_parse.c
@@ -455,8 +455,7 @@ static char *parse_tag(ASS_Renderer *render_priv, char *p, double pwr)
family[p - start] = '\0';
} else
family = strdup(render_priv->state.style->FontName);
- if (render_priv->state.family)
- free(render_priv->state.family);
+ free(render_priv->state.family);
render_priv->state.family = family;
update_font(render_priv);
} else if (mystrcmp(&p, "alpha")) {