* src/truetype/ttinterp.c (TT_Load_Context): Clean up.

This commit is contained in:
Alexei Podtelezhnikov
2025-05-26 23:13:52 -04:00
parent c6abd1e40a
commit 31d05d089b

View File

@@ -301,14 +301,13 @@
TT_Face face,
TT_Size size )
{
FT_Int i;
TT_MaxProfile* maxp;
FT_Error error;
FT_Memory memory = exec->memory;
FT_Int i;
FT_Long stackSize;
FT_Error error;
FT_Memory memory = exec->memory;
exec->face = face;
maxp = &face->max_profile;
exec->size = size;
if ( size )
@@ -349,11 +348,10 @@
/* XXX: We reserve a little more elements on the stack to deal safely */
/* with broken fonts like arialbs, courbs, timesbs, etc. */
if ( FT_QRENEW_ARRAY( exec->stack,
exec->stackSize,
maxp->maxStackElements + 32 ) )
stackSize = face->max_profile.maxStackElements + 32.
if ( FT_QRENEW_ARRAY( exec->stack, exec->stackSize, stackSize ) )
return error;
exec->stackSize = maxp->maxStackElements + 32;
exec->stackSize = stackSize;
/* free previous glyph code range */
FT_FREE( exec->glyphIns );