summaryrefslogtreecommitdiff
path: root/src/bdf
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2022-01-15 23:09:53 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2022-01-15 23:09:53 -0500
commitd118bf8e35e69454ed046b57ac54dd67d49b87d9 (patch)
tree5a8cb73c798e82e5052115f7def8a9db7a60664a /src/bdf
parent3f6497bdc53bf19c1ac07cfbb121d7c51966b0d7 (diff)
downloadfreetype2-d118bf8e35e69454ed046b57ac54dd67d49b87d9.tar.gz
[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`.
Diffstat (limited to 'src/bdf')
-rw-r--r--src/bdf/bdflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bdf/bdflib.c b/src/bdf/bdflib.c
index b9bd7678f..6603148a0 100644
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -1949,7 +1949,7 @@
}
}
- if ( FT_ALLOC( p->font->internal, sizeof ( FT_HashRec ) ) )
+ if ( FT_QALLOC( p->font->internal, sizeof ( FT_HashRec ) ) )
goto Exit;
error = ft_hash_str_init( (FT_Hash)p->font->internal, memory );
if ( error )