shithub: freetype+ttf2subf

Download patch

ref: 692bbe59daf7046bb5d6951df9f95a1a7ec61c8b
parent: b6b63375390996caa1d5aac73d68f61cd98e69aa
author: David Turner <[email protected]>
date: Wed Apr 9 03:03:38 EDT 2003

* src/base/ftmac.c (open_face_from_buffer): removed a double-free bug that
   had nasty consequences when trying to open an "invalid" font on a Mac.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-09  Torrey Lyons  <[email protected]>
+
+   * src/base/ftmac.c (open_face_from_buffer): removed a double-free bug that
+   had nasty consequences when trying to open an "invalid" font on a Mac.
+
 2003-04-09  Mike Fabian  <[email protected]>
 
    * src/bdf/bdfdrivr.h, src/pcf/pcf.h: changed FT_Short to FT_UShort in
--- a/src/base/ftmac.c
+++ b/src/base/ftmac.c
@@ -541,11 +541,6 @@
     error = FT_Open_Face( library, &args, face_index, aface );
     if ( error == FT_Err_Ok )
       (*aface)->face_flags &= ~FT_FACE_FLAG_EXTERNAL_STREAM;
-    else
-    {
-      FT_Stream_CloseFunc( stream );
-      FT_FREE( stream );
-    }
 
     return error;
   }