From 692bbe59daf7046bb5d6951df9f95a1a7ec61c8b Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 9 Apr 2003 07:03:38 +0000 Subject: [PATCH] * 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. --- ChangeLog | 5 +++++ src/base/ftmac.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74b7b1eaf..b8b3d0c54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-09 Torrey Lyons + + * 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 * src/bdf/bdfdrivr.h, src/pcf/pcf.h: changed FT_Short to FT_UShort in diff --git a/src/base/ftmac.c b/src/base/ftmac.c index 2d37d397e..a09b7b1bd 100644 --- 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; }