Fix ass_clear_fonts not deallocating fontdata.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 8 Jan 2008 12:45:41 +0000 (12:45 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 8 Jan 2008 12:45:41 +0000 (12:45 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@25649 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_library.c

index 4c4e89f..cda9287 100644 (file)
@@ -107,4 +107,7 @@ void ass_clear_fonts(ass_library_t* priv)
                free(priv->fontdata[i].name);
                free(priv->fontdata[i].data);
        }
+       free(priv->fontdata);
+       priv->fontdata = NULL;
+       priv->num_fontdata = 0;
 }