fix the 2nd part of Savannah bug #16590

This commit is contained in:
Suzuki, Toshiya (鈴木俊哉) 2006-05-19 10:48:42 +00:00
parent 545c4e566e
commit 4720060553
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (open_face_from_buffer): Deallocate stream when
its content cannot be parsed as supported font. This fixes
the second part of Savannah bug #16590.
2006-05-18 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (TT_Load_Composite_Glyph)

View File

@ -1010,6 +1010,8 @@
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_Free( stream, 0 );
return error;
}