ref: 66883b580859ffef165726dac719bbed448be7d9
parent: 5018477f4efdaaa5eaa7b57f76bf337d6ad59e78
author: Werner Lemberg <[email protected]>
date: Sun Dec 7 04:17:06 EST 2014
[truetype] Prevent memory leak for buggy fonts. * src/truetype/ttobjs.c (tt_size_done): Unconditionally call `tt_size_done_bytecode'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-12-07 Werner Lemberg <[email protected]>
+
+ [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 <[email protected]>
* Version 2.5.4 released.
--- 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;