* 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.
This commit is contained in:
David Turner 2003-04-09 07:03:38 +00:00
parent 7b80b45160
commit 2ff2bd8e2c
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-04-09 Torrey Lyons <torrey@mrcla.com>
* 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 <mfabian@suse.de>
* src/bdf/bdfdrivr.h, src/pcf/pcf.h: changed FT_Short to FT_UShort in

View File

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