ref: b6192827a31cae9d11fa5af2808ea0771c363aa1
parent: 95120928592c4d977abbef3b6582eae12b4058c2
author: Werner Lemberg <[email protected]>
date: Sat Nov 8 02:28:39 EST 2008
* src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against slot->internal == NULL. Reported by Graham Asher.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-08 Wenlin Institute <[email protected]>
+
+ * src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against
+ slot->internal == NULL. Reported by Graham Asher.
+
2008-11-08 Werner Lemberg <[email protected]>
* src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error
--- 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 );