* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Triage memory leak.
This leak has been introduced in the previous commit and immediately detected: https://chromium-review.googlesource.com/c/chromium/src/+/4313202
This commit is contained in:
parent
de94e2cbfb
commit
dec3118592
|
@ -453,6 +453,8 @@
|
||||||
/* and thus allocate the bytecode array size by ourselves */
|
/* and thus allocate the bytecode array size by ourselves */
|
||||||
if ( n_ins )
|
if ( n_ins )
|
||||||
{
|
{
|
||||||
|
if ( exec->glyphSize )
|
||||||
|
FT_FREE( exec->glyphIns );
|
||||||
if ( FT_QNEW_ARRAY( exec->glyphIns, n_ins ) )
|
if ( FT_QNEW_ARRAY( exec->glyphIns, n_ins ) )
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue