Re: [ft-devel] FT_New_GlyphSlot crashes if out of memory allocating slot->internal

2008-11-04 Thread Wenlin Institute
On Nov 4, 2008, at 1:16 PM, Graham Asher wrote: The title says it all really. I discovered this when by forcing random heap allocation failures - a technique we used to use at Symbian. If this line fails in ft_glyphslot_init if ( FT_NEW( internal ) ) then slot->internal is null, and wh

[ft-devel] FT_New_GlyphSlot crashes if out of memory allocating slot->internal

2008-11-04 Thread Graham Asher
The title says it all really. I discovered this when by forcing random heap allocation failures - a technique we used to use at Symbian. If this line fails in ft_glyphslot_init if ( FT_NEW( internal ) ) then slot->internal is null, and when FT_New_GlyphSlot detects the error and calls ft_gly