summaryrefslogtreecommitdiff
path: root/src/type42
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2022-01-20 14:47:01 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2022-01-20 14:47:01 -0500
commit0d2b4952a37218cbe82fb79a40784c01ca172b56 (patch)
tree97c63c75829dec8150a5853d0bec1c8b34e077b8 /src/type42
parent02fa26f4cdb6b2da96afddb56d4482c67ba6ff78 (diff)
downloadfreetype2-0d2b4952a37218cbe82fb79a40784c01ca172b56.tar.gz
[psaux, type1, type42] Avoid annecessary zeroing.
* src/psaux/psobjs.c (ps_table_new): Use FT_QNEW_ARRAY. * src/type1/t1load.c (parse_encoding): Ditto. * src/type42/t42parse.c (t42_parse_encoding): Ditto.
Diffstat (limited to 'src/type42')
-rw-r--r--src/type42/t42parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c
index 6714074f6..f14b4226c 100644
--- a/src/type42/t42parse.c
+++ b/src/type42/t42parse.c
@@ -363,8 +363,8 @@
/* we use a T1_Table to store our charnames */
loader->num_chars = encode->num_chars = count;
- if ( FT_NEW_ARRAY( encode->char_index, count ) ||
- FT_NEW_ARRAY( encode->char_name, count ) ||
+ if ( FT_QNEW_ARRAY( encode->char_index, count ) ||
+ FT_QNEW_ARRAY( encode->char_name, count ) ||
FT_SET_ERROR( psaux->ps_table_funcs->init(
char_table, count, memory ) ) )
{