Commit b3250f367ade969357e3037deb3166a4e93a8179

Alexei Podtelezhnikov 2023-03-06T23:53:42

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index cca81b4..3998172 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;