Commit b6420e84edeccc5c45078e92fd31aa9e5c8e8a1e

Werner Lemberg 2004-05-18T20:16:04

* src/sfnt/sfobjs.c (sfnt_done_face): Free face->postscript_name.

diff --git a/ChangeLog b/ChangeLog
index b0054a2..ea7a9c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-15  Werner Lemberg  <wl@gnu.org>
+
+	* src/sfnt/sfobjs.c (sfnt_done_face): Free face->postscript_name.
+
 2004-05-15  George Williams  <gww@silcom.com>
 
 	* src/sfnt/ttload.c (tt_face_load_max_profile): Always set
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 56781f7..5fca215 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -838,9 +838,10 @@
     FT_FREE( face->root.style_name );
 
     /* freeing sbit size table */
+    FT_FREE( face->root.available_sizes );
     face->root.num_fixed_sizes = 0;
-    if ( face->root.available_sizes )
-      FT_FREE( face->root.available_sizes );
+
+    FT_FREE( face->postscript_name );
 
     face->sfnt = 0;
   }