# HG changeset patch # User eugeni # Date 1199796341 0 # Node ID a09381e1a3254edc5e12f0f14fc47bd8593771dc # Parent 53e5107ea80d1ae7f685f74673e95e60ba5d1129 Fix ass_clear_fonts not deallocating fontdata. diff -r 53e5107ea80d -r a09381e1a325 libass/ass_library.c --- a/libass/ass_library.c Tue Jan 08 00:37:41 2008 +0000 +++ b/libass/ass_library.c Tue Jan 08 12:45:41 2008 +0000 @@ -107,4 +107,7 @@ free(priv->fontdata[i].name); free(priv->fontdata[i].data); } + free(priv->fontdata); + priv->fontdata = NULL; + priv->num_fontdata = 0; }