]> granicus.if.org Git - libass/commitdiff
Fix another minor leak (event_format overwriting)
authorGrigori Goronzy <greg@blackbox>
Mon, 9 Aug 2010 01:13:20 +0000 (03:13 +0200)
committerGrigori Goronzy <greg@blackbox>
Mon, 9 Aug 2010 03:58:00 +0000 (05:58 +0200)
libass/ass.c

index 27df596503af62bce1f93db3cd055cf6891a1ecf..b080ff9a07df3c9d87868d22faea45463aa71e61 100644 (file)
@@ -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)) {