summaryrefslogtreecommitdiffstats
path: root/libass/ass.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass.c')
-rw-r--r--libass/ass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass.c b/libass/ass.c
index dda61c5..f42fd4b 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -590,6 +590,7 @@ static int process_styles_line(ASS_Track *track, char *str)
if (!strncmp(str, "Format:", 7)) {
char *p = str + 7;
skip_spaces(&p);
+ free(track->style_format);
track->style_format = strdup(p);
ass_msg(track->library, MSGL_DBG2, "Style format: %s",
track->style_format);