[cache] Avoid unnecessary zeroing.
* src/cache/ftccmap.c (ftc_cmap_node_new): Use `FT_QNEW`. * src/cache/ftcimage.c (FTC_INode_New): Ditto. * src/cache/ftcsbits.c (FTC_SNode_New): Ditto.
This commit is contained in:
parent
11ea89b51c
commit
edd4fedc54
|
@ -112,11 +112,11 @@
|
|||
FTC_CMapQuery query = (FTC_CMapQuery)ftcquery;
|
||||
FT_Error error;
|
||||
FT_Memory memory = cache->memory;
|
||||
FTC_CMapNode node = NULL;
|
||||
FTC_CMapNode node;
|
||||
FT_UInt nn;
|
||||
|
||||
|
||||
if ( !FT_NEW( node ) )
|
||||
if ( !FT_QNEW( node ) )
|
||||
{
|
||||
node->face_id = query->face_id;
|
||||
node->cmap_index = query->cmap_index;
|
||||
|
|
|
@ -61,10 +61,10 @@
|
|||
{
|
||||
FT_Memory memory = cache->memory;
|
||||
FT_Error error;
|
||||
FTC_INode inode = NULL;
|
||||
FTC_INode inode;
|
||||
|
||||
|
||||
if ( !FT_NEW( inode ) )
|
||||
if ( !FT_QNEW( inode ) )
|
||||
{
|
||||
FTC_GNode gnode = FTC_GNODE( inode );
|
||||
FTC_Family family = gquery->family;
|
||||
|
|
|
@ -233,7 +233,7 @@
|
|||
goto Exit;
|
||||
}
|
||||
|
||||
if ( !FT_NEW( snode ) )
|
||||
if ( !FT_QNEW( snode ) )
|
||||
{
|
||||
FT_UInt count, start;
|
||||
|
||||
|
|
Loading…
Reference in New Issue