From d2ac68bddfc2a484c32607143bde2ac6b4014019 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 3 Nov 2000 07:57:51 +0000 Subject: [PATCH] Don't access freed variables... --- src/base/ftglyph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c index 490f9badf..3a360cde8 100644 --- a/src/base/ftglyph.c +++ b/src/base/ftglyph.c @@ -815,7 +815,7 @@ FT_Glyph_Transform( glyph, 0, &v ); } - /* in case of succes, copy the bitmap to the glyph bitmap */ + /* in case of success, copy the bitmap to the glyph bitmap */ if ( !error ) { error = ft_bitmap_glyph_init( bitmap, &dummy ); @@ -826,12 +826,12 @@ goto Exit; } + /* copy advance */ + bitmap->root.advance = glyph->advance; + if ( destroy ) FT_Done_Glyph( glyph ); - /* copy advance - thanks Karsten ;-) */ - bitmap->root.advance = glyph->advance; - *the_glyph = FT_GLYPH( bitmap ); }