shithub: freetype+ttf2subf

Download patch

ref: b6420e84edeccc5c45078e92fd31aa9e5c8e8a1e
parent: 695ce08c64a915d3344a32c33e21c2db52663faf
author: Werner Lemberg <[email protected]>
date: Tue May 18 16:16:04 EDT 2004

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-15  Werner Lemberg  <[email protected]>
+
+	* src/sfnt/sfobjs.c (sfnt_done_face): Free face->postscript_name.
+
 2004-05-15  George Williams  <[email protected]>
 
 	* src/sfnt/ttload.c (tt_face_load_max_profile): Always set
--- 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;
   }