shithub: freetype+ttf2subf

Download patch

ref: 47200605535b04657d0793725c99e19ee6634519
parent: 545c4e566e9785ba3c84062e211d21aeb5be989a
author: Suzuki, Toshiya (鈴木俊哉) <[email protected]>
date: Fri May 19 06:48:42 EDT 2006

fix the 2nd part of Savannah bug #16590

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-19  suzuki toshiya  <[email protected]>
+
+	* src/base/ftmac.c (open_face_from_buffer): Deallocate stream when
+	its content cannot be parsed as supported font. This fixes
+	the second part of Savannah bug #16590.
+
 2006-05-18  Werner Lemberg  <[email protected]>
 
 	* src/truetype/ttgload.c (TT_Load_Composite_Glyph)
--- a/src/base/ftmac.c
+++ b/src/base/ftmac.c
@@ -1010,6 +1010,8 @@
     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_Free( stream, 0 );
 
     return error;
   }