In function CFF_Done_Font, make sure to free the subfonts array to

avoid a memory leak.
This commit is contained in:
Tom Kacvinsky 2001-10-21 16:29:16 +00:00
parent 9b8f633b87
commit 7579edc55e

View File

@ -2246,6 +2246,8 @@
for ( index = 0; index < font->num_subfonts; index++ )
CFF_Done_SubFont( memory, font->subfonts[index] );
FREE( font->subfonts );
CFF_Done_Encoding( &font->encoding, font->stream );
CFF_Done_Charset( &font->charset, font->stream );