summaryrefslogtreecommitdiff
path: root/src/truetype/ttgload.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/truetype/ttgload.c')
-rw-r--r--src/truetype/ttgload.c2
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;