From a57af6fb37985aa7a2e279de17dc1a06a8b6954b Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Wed, 7 Mar 2001 20:42:18 +0000 Subject: [PATCH] 2001-03-07 Tom Kacvinsky * src/type1/t1objs.c (T1_Done_Face): Free `char_name' table to avoid a memory leak. Submitted by Sander van der Wal --- src/type1/t1objs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c index bdaf8feaa..c8a61359e 100644 --- a/src/type1/t1objs.c +++ b/src/type1/t1objs.c @@ -103,6 +103,7 @@ FREE( type1->glyph_names_block ); FREE( type1->encoding.char_index ); + FREE( type1->encoding.char_name ); FREE( type1->font_name ); #ifndef T1_CONFIG_OPTION_NO_AFM @@ -273,14 +274,14 @@ if ( !root->units_per_EM ) root->units_per_EM = 1000; - root->ascender = (FT_Short)face->type1.font_bbox.yMax; - root->descender = (FT_Short)face->type1.font_bbox.yMin; + root->ascender = face->type1.font_bbox.yMax >> 16; + root->descender = face->type1.font_bbox.yMin >> 16; root->height = ( ( root->ascender - root->descender ) * 12 ) / 10; /* now compute the maximum advance width */ - root->max_advance_width = (FT_Short)face->type1.font_bbox.xMax; + root->max_advance_width = face->type1.font_bbox.xMax >> 16; { FT_Int max_advance;