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 12d40dac42
commit 98289a2a65

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 );