diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2023-03-06 23:53:42 -0500 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2023-03-06 23:53:42 -0500 |
commit | b3250f367ade969357e3037deb3166a4e93a8179 (patch) | |
tree | 43c5415b9815c5475873a07d5d747cbb1c7eaf58 | |
parent | b36193d025b970a338f41b8ab15f010a428c345e (diff) | |
download | freetype2-b3250f367ade969357e3037deb3166a4e93a8179.tar.gz |
* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix leak too.
-rw-r--r-- | src/truetype/ttgload.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |