From 5fe94ff636fd3b925c775565cc380fd07d3cf26b Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Fri, 28 Jul 2000 02:25:23 +0000 Subject: [PATCH] Adapted to new external stream semantics. --- src/base/ftmac.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base/ftmac.c b/src/base/ftmac.c index 617c78687..d24d83b0a 100644 --- a/src/base/ftmac.c +++ b/src/base/ftmac.c @@ -468,9 +468,13 @@ Error: 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; }