mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
Fix leak of exec->FDefs in tt_size_init_bytecode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user