mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-19 08:58:08 +02:00
[gf] Fix invalid free operation.
* src/gf/gfdrivr.c(GF_Face_Done): Fix the free operation which caused seg fault after `gf driver' returned `not a gf file'.
This commit is contained in:
parent
efe6142469
commit
13442d8954
1 changed files with 4 additions and 2 deletions
|
|
@ -190,7 +190,9 @@
|
|||
memory = FT_FACE_MEMORY( face );
|
||||
|
||||
FT_FREE( gfface->available_sizes );
|
||||
FT_FREE( face->gf_glyph->encodings );
|
||||
|
||||
if( face->gf_glyph )
|
||||
FT_FREE( face->gf_glyph->encodings );
|
||||
|
||||
gf_free_font( face );
|
||||
|
||||
|
|
@ -238,7 +240,7 @@
|
|||
goto Exit;
|
||||
|
||||
/* we have a gf font: let's construct the face object */
|
||||
face->gf_glyph = go ;
|
||||
face->gf_glyph = go;
|
||||
|
||||
/* sanity check */
|
||||
if ( !face->gf_glyph->bm_table )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue