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; }