mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 15:48:52 +02:00
In function CFF_Done_Font, make sure to free the subfonts array to
avoid a memory leak.
This commit is contained in:
parent
9b8f633b87
commit
7579edc55e
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue