forked from minhngoc25a/freetype2
* 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:
parent
7b80b45160
commit
2ff2bd8e2c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue