Fix leak of exec->FDefs in tt_size_init_bytecode

This commit is contained in:
Ben Wagner
2026-01-05 20:50:05 +00:00
parent 7b72c0f238
commit 26adb9ff98

View File

@@ -1043,6 +1043,8 @@
if ( !exec )
return FT_THROW( Could_Not_Find_Context );
size->context = exec;
exec->pedantic_hinting = pedantic;
exec->maxFDefs = maxp->maxFunctionDefs;
@@ -1083,7 +1085,6 @@
size->GS = tt_default_graphics_state;
size->cvt_ready = -1;
size->context = exec;
size->ttmetrics.rotated = FALSE;
size->ttmetrics.stretched = FALSE;
@@ -1100,7 +1101,6 @@
return error;
Fail:
TT_Done_Context( exec );
tt_size_done_bytecode( size );
return error;
}