[truetype] Avoid some memory zeroing.
* src/truetype/ttgload.c (load_truetype_glyph): Use Q-macro. * src/truetype/ttinterp.c (Update_Max): Ditto. * src/truetype/ttpload.c (src/truetype/ttpload.c): Ditto.
This commit is contained in:
parent
c1fa7aa2bc
commit
fab94f9fcc
|
@ -1920,7 +1920,7 @@
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( FT_NEW( node ) )
|
if ( FT_QNEW( node ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
node->data = FT_UINT_TO_POINTER( glyph_index );
|
node->data = FT_UINT_TO_POINTER( glyph_index );
|
||||||
FT_List_Add( &loader->composites, node );
|
FT_List_Add( &loader->composites, node );
|
||||||
|
|
|
@ -375,7 +375,7 @@
|
||||||
|
|
||||||
if ( *size < new_max )
|
if ( *size < new_max )
|
||||||
{
|
{
|
||||||
if ( FT_REALLOC( *pbuff, *size * multiplier, new_max * multiplier ) )
|
if ( FT_QREALLOC( *pbuff, *size * multiplier, new_max * multiplier ) )
|
||||||
return error;
|
return error;
|
||||||
*size = new_max;
|
*size = new_max;
|
||||||
}
|
}
|
||||||
|
|
|
@ -571,7 +571,7 @@
|
||||||
goto Fail;
|
goto Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( FT_NEW_ARRAY( face->hdmx_record_sizes, num_records ) )
|
if ( FT_QNEW_ARRAY( face->hdmx_record_sizes, num_records ) )
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
for ( nn = 0; nn < num_records; nn++ )
|
for ( nn = 0; nn < num_records; nn++ )
|
||||||
|
|
Loading…
Reference in New Issue