From 10a11ce0cc2bcfbe8978a5e14b2e5899a5b155fd Mon Sep 17 00:00:00 2001 From: harukalover Date: Fri, 22 May 2009 04:09:09 +0000 Subject: [PATCH] Fixed some of the larger memory leaks in the LibassSubtitlesProvider detected by valgrind Originally committed to SVN as r2970. --- aegisub/src/subtitles_provider_libass.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/src/subtitles_provider_libass.cpp b/aegisub/src/subtitles_provider_libass.cpp index a924d12f8..727a4debc 100644 --- a/aegisub/src/subtitles_provider_libass.cpp +++ b/aegisub/src/subtitles_provider_libass.cpp @@ -80,6 +80,9 @@ LibassSubtitlesProvider::LibassSubtitlesProvider() { ////////////// // Destructor LibassSubtitlesProvider::~LibassSubtitlesProvider() { + ass_free_track(ass_track); + ass_renderer_done(ass_renderer); + ass_library_done(ass_library); }