In function CFF_Done_Font, make sure to free the subfonts array to
avoid a memory leak.
This commit is contained in:
parent
12d40dac42
commit
98289a2a65
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue