diff options
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/src/autofit/afglobal.c')
-rw-r--r-- | Build/source/libs/freetype2/freetype-src/src/autofit/afglobal.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/src/autofit/afglobal.c b/Build/source/libs/freetype2/freetype-src/src/autofit/afglobal.c index 87a3fbfb0fe..b805b3b0e52 100644 --- a/Build/source/libs/freetype2/freetype-src/src/autofit/afglobal.c +++ b/Build/source/libs/freetype2/freetype-src/src/autofit/afglobal.c @@ -4,7 +4,7 @@ * * Auto-fitter routines to compute global hinting values (body). * - * Copyright (C) 2003-2022 by + * Copyright (C) 2003-2021 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, @@ -337,13 +337,11 @@ /* we allocate an AF_FaceGlobals structure together */ /* with the glyph_styles array */ - if ( FT_QALLOC( globals, - sizeof ( *globals ) + - (FT_ULong)face->num_glyphs * sizeof ( FT_UShort ) ) ) + if ( FT_ALLOC( globals, + sizeof ( *globals ) + + (FT_ULong)face->num_glyphs * sizeof ( FT_UShort ) ) ) goto Exit; - FT_ZERO( &globals->metrics ); - globals->face = face; globals->glyph_count = face->num_glyphs; /* right after the globals structure come the glyph styles */ |