diff --git a/ChangeLog b/ChangeLog index 675f019dc..2cf5c8804 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-12-07 Werner Lemberg + + [truetype] Prevent memory leak for buggy fonts. + + * src/truetype/ttobjs.c (tt_size_done): Unconditionally call + `tt_size_done_bytecode'. + 2014-12-06 Werner Lemberg * Version 2.5.4 released. diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index a73529d84..93ac8f972 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -1146,8 +1146,7 @@ #ifdef TT_USE_BYTECODE_INTERPRETER - if ( size->bytecode_ready >= 0 ) - tt_size_done_bytecode( ttsize ); + tt_size_done_bytecode( ttsize ); #endif size->ttmetrics.valid = FALSE;