[bdf, psnames, sfnt] Avoid some memory zeroing.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Use Q-macro. * src/sfnt/sfobjs.c (sfnt_load_face): Ditto. * src/psnames/psmodule.c (src/psnames/psmodule.c): Remove zero.
This commit is contained in:
parent
59b43ae663
commit
058f3f2d7d
|
@ -606,7 +606,7 @@ THE SOFTWARE.
|
||||||
unsigned long n;
|
unsigned long n;
|
||||||
|
|
||||||
|
|
||||||
if ( FT_NEW_ARRAY( face->en_table, font->glyphs_size ) )
|
if ( FT_QNEW_ARRAY( face->en_table, font->glyphs_size ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
|
|
||||||
face->default_glyph = 0;
|
face->default_glyph = 0;
|
||||||
|
|
|
@ -325,7 +325,6 @@
|
||||||
|
|
||||||
/* we first allocate the table */
|
/* we first allocate the table */
|
||||||
table->num_maps = 0;
|
table->num_maps = 0;
|
||||||
table->maps = NULL;
|
|
||||||
|
|
||||||
if ( !FT_QNEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE ) )
|
if ( !FT_QNEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE ) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1209,7 +1209,7 @@
|
||||||
/* of `FT_Face', we map `available_sizes' indices to strike */
|
/* of `FT_Face', we map `available_sizes' indices to strike */
|
||||||
/* indices */
|
/* indices */
|
||||||
if ( FT_NEW_ARRAY( root->available_sizes, count ) ||
|
if ( FT_NEW_ARRAY( root->available_sizes, count ) ||
|
||||||
FT_NEW_ARRAY( sbit_strike_map, count ) )
|
FT_QNEW_ARRAY( sbit_strike_map, count ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
|
|
||||||
bsize_idx = 0;
|
bsize_idx = 0;
|
||||||
|
|
Loading…
Reference in New Issue