shithub: freetype+ttf2subf

Download patch

ref: 5fe94ff636fd3b925c775565cc380fd07d3cf26b
parent: 08d78b62e3357e171231b644047d703399a09a0d
author: Just van Rossum <[email protected]>
date: Thu Jul 27 22:25:23 EDT 2000

Adapted to new external stream semantics.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftmac.c
+++ b/src/base/ftmac.c
@@ -468,9 +468,13 @@
       args.driver = FT_Get_Module( library, driver_name );
     }
     error = FT_Open_Face( library, &args, face_index, aface );
-    if ( !error )
+    if ( error == FT_Err_Ok )
       (*aface)->face_flags &= ~FT_FACE_FLAG_EXTERNAL_STREAM;
-    FREE( stream );  /* FT_Open_Face() made a copy */
+    else
+    {
+      FT_Done_Stream( stream );
+      FREE( stream );
+    }
     return error;
   }