diff options
Diffstat (limited to 'src/cff/cffdrivr.c')
-rw-r--r-- | src/cff/cffdrivr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c index 03ad0c42c..6f8437920 100644 --- a/src/cff/cffdrivr.c +++ b/src/cff/cffdrivr.c @@ -344,6 +344,7 @@ FT_String* name; FT_UShort sid; FT_UInt i; + FT_Int result; cff = face->extra.data; @@ -361,7 +362,12 @@ else name = (FT_String *)psnames->adobe_std_strings( sid ); - if ( !strcmp( glyph_name, name ) ) + result = strcmp( glyph_name, name ); + + if ( sid > 390 ) + FREE( name ); + + if ( !ret ) return i; } |