[truetype] Prevent memory leak for buggy fonts.

* src/truetype/ttobjs.c (tt_size_done): Unconditionally call
`tt_size_done_bytecode'.
2.6.5
Werner Lemberg 10 years ago
parent 5018477f4e
commit 66883b5808
  1. 7
      ChangeLog
  2. 3
      src/truetype/ttobjs.c

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

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

Loading…
Cancel
Save