* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix leak too.

This commit is contained in:
Alexei Podtelezhnikov 2023-03-06 23:53:42 -05:00
parent b36193d025
commit b3250f367a
1 changed files with 2 additions and 0 deletions

View File

@ -1375,6 +1375,8 @@
FT_Memory memory = exec->memory;
if ( exec->glyphSize )
FT_FREE( exec->glyphIns );
if ( FT_QNEW_ARRAY( exec->glyphIns, n_ins ) ||
FT_STREAM_READ( exec->glyphIns, n_ins ) )
return error;