fixed a bug reported by Graham Asher
This commit is contained in:
parent
f3b07226c2
commit
5aeaad6c39
|
@ -1,3 +1,12 @@
|
|||
2001-02-22 David Turner <david.turner@freetype.org>
|
||||
|
||||
* src/base/ftgrays.c (grays_sweep): the function didn't exit
|
||||
immediately if "num_cells" was 0 as it should. Thanks to Boris
|
||||
for finding this out.
|
||||
|
||||
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): fixed memory leak when
|
||||
bitmap rendering fails.. (thanks to Graham Asher)
|
||||
|
||||
2001-02-13 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* docs/docmaker.py (DocSection::add_element): Use
|
||||
|
|
|
@ -602,6 +602,12 @@
|
|||
if ( !error )
|
||||
error = FT_Render_Glyph_Internal( glyph->library, &dummy, render_mode );
|
||||
|
||||
if (error)
|
||||
{
|
||||
FT_Glyph_Done( FT_GLYPH(bitmap) );
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if ( !destroy && origin )
|
||||
{
|
||||
FT_Vector v;
|
||||
|
|
|
@ -1359,6 +1359,8 @@
|
|||
|
||||
FT_UNUSED( target );
|
||||
|
||||
if ( ras.num_cells == 0 )
|
||||
return;
|
||||
|
||||
cur = ras.cells;
|
||||
limit = cur + ras.num_cells;
|
||||
|
|
Loading…
Reference in New Issue