diff options
Diffstat (limited to 'freetype/src/type1/t1objs.c')
-rw-r--r-- | freetype/src/type1/t1objs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/freetype/src/type1/t1objs.c b/freetype/src/type1/t1objs.c index 50dad038..fa4a13b5 100644 --- a/freetype/src/type1/t1objs.c +++ b/freetype/src/type1/t1objs.c @@ -4,7 +4,7 @@ * * Type 1 objects manager (body). * - * Copyright (C) 1996-2021 by + * Copyright (C) 1996-2022 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, @@ -146,7 +146,9 @@ FT_LOCAL_DEF( void ) T1_GlyphSlot_Done( FT_GlyphSlot slot ) { - slot->internal->glyph_hints = NULL; + /* `slot->internal` might be NULL in out-of-memory situations. */ + if ( slot->internal ) + slot->internal->glyph_hints = NULL; } |