shithub: freetype+ttf2subf

Download patch

ref: 96b5e500909cfce39ff78feabefd8063a229b951
parent: 1a21ca7b9115178484ce0ed2f6816f3490d5d1b4
author: Ben Wagner <[email protected]>
date: Fri Aug 10 18:24:26 EDT 2018

* src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-10  Ben Wagner  <[email protected]>
+
+	* src/sfnt/sfobjs.c (sfnt_done_face): Fix memory leak (#54435).
+
 2018-08-10  Werner Lemberg  <[email protected]>
 
 	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Improve tracing.
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -1809,8 +1809,9 @@
     FT_FREE( face->sbit_strike_map );
     face->root.num_fixed_sizes = 0;
 
-#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
     FT_FREE( face->postscript_name );
+
+#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
     FT_FREE( face->var_postscript_prefix );
 #endif