[bdf,type1] Avoid unnecessary hash zeroing.
* src/bdf/bdflib.c (_bdf_parse_start): Use `FT_QALLOC`. * src/type1/t1load.c (parse_subrs): Use `FT_QNEW`.
This commit is contained in:
parent
3f6497bdc5
commit
d118bf8e35
|
@ -1949,7 +1949,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( FT_ALLOC( p->font->internal, sizeof ( FT_HashRec ) ) )
|
if ( FT_QALLOC( p->font->internal, sizeof ( FT_HashRec ) ) )
|
||||||
goto Exit;
|
goto Exit;
|
||||||
error = ft_hash_str_init( (FT_Hash)p->font->internal, memory );
|
error = ft_hash_str_init( (FT_Hash)p->font->internal, memory );
|
||||||
if ( error )
|
if ( error )
|
||||||
|
|
|
@ -1772,7 +1772,7 @@
|
||||||
|
|
||||||
if ( !loader->subrs_hash )
|
if ( !loader->subrs_hash )
|
||||||
{
|
{
|
||||||
if ( FT_NEW( loader->subrs_hash ) )
|
if ( FT_QNEW( loader->subrs_hash ) )
|
||||||
goto Fail;
|
goto Fail;
|
||||||
|
|
||||||
error = ft_hash_num_init( loader->subrs_hash, memory );
|
error = ft_hash_num_init( loader->subrs_hash, memory );
|
||||||
|
|
Loading…
Reference in New Issue