From b3250f367ade969357e3037deb3166a4e93a8179 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Mon, 6 Mar 2023 23:53:42 -0500 Subject: * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix leak too. --- src/truetype/ttgload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index cca81b41c..3998172cf 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -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; -- cgit v1.2.1