summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gf/gfdrivr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gf/gfdrivr.c b/src/gf/gfdrivr.c
index 8803bc24a..ba6d505da 100644
--- a/src/gf/gfdrivr.c
+++ b/src/gf/gfdrivr.c
@@ -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 )