From b6192827a31cae9d11fa5af2808ea0771c363aa1 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 8 Nov 2008 07:28:39 +0000 Subject: [PATCH] * src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against slot->internal == NULL. Reported by Graham Asher. --- ChangeLog | 5 +++++ src/base/ftobjs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aec026e86..1ba70e3c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-08 Wenlin Institute + + * src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against + slot->internal == NULL. Reported by Graham Asher. + 2008-11-08 Werner Lemberg * src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 0d036f612..b3ca09572 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -254,7 +254,7 @@ FT_BASE_DEF( void ) ft_glyphslot_free_bitmap( FT_GlyphSlot slot ) { - if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) + if ( slot->internal && ( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) ) { FT_Memory memory = FT_FACE_MEMORY( slot->face );