[truetype] Prevent memory leak for buggy fonts.

* src/truetype/ttobjs.c (tt_size_done): Unconditionally call
`tt_size_done_bytecode'.
This commit is contained in:
Werner Lemberg 2014-12-07 09:17:06 +01:00
parent 5018477f4e
commit 66883b5808
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2014-12-07 Werner Lemberg <wl@gnu.org>
[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 <wl@gnu.org>
* Version 2.5.4 released.

View File

@ -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;