shithub: freetype+ttf2subf

Download patch

ref: d503fc57f2a94df30b04bf19b3a215f7c65111e1
parent: 27649fb62bf94af9c58f14cfa6c6414d8b8643f6
author: Werner Lemberg <[email protected]>
date: Thu Nov 1 05:19:44 EDT 2007

* src/sfnt/sfobjs.c (sfnt_done_face): Check `sfnt' everywhere.  This
fixes Savannah bug #21485.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-01  Werner Lemberg  <[email protected]>
+
+	* src/sfnt/sfobjs.c (sfnt_done_face): Check `sfnt' everywhere.  This
+	fixes Savannah bug #21485.
+
 2006-10-29  Daniel Svoboda  <dasvo@planeta@cz>
 
 	* src/winfonts/winfnt.c (FNT_Face_Init): Check first that the driver
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -1096,7 +1096,8 @@
     face->gasp.numRanges = 0;
 
     /* freeing the name table */
-    sfnt->free_name( face );
+    if ( sfnt )
+      sfnt->free_name( face );
 
     /* freeing family and style name */
     FT_FREE( face->root.family_name );