From 65d9960f24ec25cadfacd505046f9e4f2932bb12 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Mon, 9 Aug 2010 03:13:20 +0200 Subject: [PATCH] Fix another minor leak (event_format overwriting) --- libass/ass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libass/ass.c b/libass/ass.c index 27df596..b080ff9 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -594,6 +594,7 @@ static int process_events_line(ASS_Track *track, char *str) if (!strncmp(str, "Format:", 7)) { char *p = str + 7; skip_spaces(&p); + free(track->event_format); track->event_format = strdup(p); ass_msg(track->library, MSGL_DBG2, "Event format: %s", track->event_format); } else if (!strncmp(str, "Dialogue:", 9)) { -- 2.40.0