From: Grigori Goronzy Date: Fri, 24 Jul 2009 07:58:01 +0000 (+0200) Subject: Free tracks properly X-Git-Tag: 0.9.7~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cadecae81541e68ad96353c10a7cb6bacea32d04;p=libass Free tracks properly When freeing a track, also free the track name and the track itself. Leak found by valgrind/memcheck. --- diff --git a/libass/ass.c b/libass/ass.c index 9eaa7b0..37e5e59 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -77,6 +77,8 @@ void ass_free_track(ass_track_t *track) ass_free_event(track, i); free(track->events); } + free(track->name); + free(track); } /// \brief Allocate a new style struct