Commit 0a1169f7c3ba417946e58a62987c9928e047889a

Werner Lemberg 2017-02-03T19:38:20

* src/autofit/afglobal.c (af_face_globals_free): Erase useless code.

diff --git a/ChangeLog b/ChangeLog
index 9963837..c08a1cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-02-03  Werner Lemberg  <wl@gnu.org>
 
+	* src/autofit/afglobal.c (af_face_globals_free): Erase useless code.
+
+2017-02-03  Werner Lemberg  <wl@gnu.org>
+
 	* include/freetype/ftgasp.h (FT_GASP_SYMMETRIC_GRIDFIT): Fix value.
 
 	Reported by Behdad.
diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c
index d238bc6..85bef00 100644
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -411,10 +411,7 @@
 
 #ifdef FT_CONFIG_OPTION_USE_HARFBUZZ
       hb_font_destroy( globals->hb_font );
-      globals->hb_font = NULL;
-
       hb_buffer_destroy( globals->hb_buf );
-      globals->hb_buf = NULL;
 #endif
 
       /* no need to free `globals->glyph_styles'; */