mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 05:28:00 +02:00
Fix leak of exec->FDefs in tt_size_init_bytecode
This commit is contained in:
parent
7b72c0f238
commit
26adb9ff98
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue