summaryrefslogtreecommitdiff
path: root/src/sfnt/ttpost.c
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-05-01 12:24:44 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-05-01 12:24:44 -0400
commitb8968d666eca94531141cfc58e13102084b5472f (patch)
tree1ef074eb29299d07bf6375dc0ed0060d3b29d1b9 /src/sfnt/ttpost.c
parent2583b6085e63a65481442d2cbe811918f06d0f66 (diff)
downloadfreetype2-b8968d666eca94531141cfc58e13102084b5472f.tar.gz
* src/sfnt/ttpost.c (load_format_{20,25}): Tweak allocaton macros.
Diffstat (limited to 'src/sfnt/ttpost.c')
-rw-r--r--src/sfnt/ttpost.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index f42143e91..6d34ce4e7 100644
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -190,8 +190,8 @@
FT_Int n;
- if ( FT_NEW_ARRAY ( glyph_indices, num_glyphs ) ||
- FT_FRAME_ENTER( num_glyphs * 2L ) )
+ if ( FT_QNEW_ARRAY ( glyph_indices, num_glyphs ) ||
+ FT_FRAME_ENTER( num_glyphs * 2L ) )
goto Fail;
for ( n = 0; n < num_glyphs; n++ )
@@ -227,7 +227,7 @@
FT_UShort n;
- if ( FT_NEW_ARRAY( name_strings, num_names ) )
+ if ( FT_QNEW_ARRAY( name_strings, num_names ) )
goto Fail;
for ( n = 0; n < num_names; n++ )
@@ -259,8 +259,8 @@
len = (FT_UInt)FT_MAX( 0, d );
}
- if ( FT_NEW_ARRAY( name_strings[n], len + 1 ) ||
- FT_STREAM_READ( name_strings[n], len ) )
+ if ( FT_QNEW_ARRAY( name_strings[n], len + 1 ) ||
+ FT_STREAM_READ( name_strings[n], len ) )
goto Fail1;
name_strings[n][len] = '\0';
@@ -273,7 +273,7 @@
" using NULL names for gid %d - %d\n",
n, num_names - 1 ));
for ( ; n < num_names; n++ )
- if ( FT_NEW_ARRAY( name_strings[n], 1 ) )
+ if ( FT_QNEW_ARRAY( name_strings[n], 1 ) )
goto Fail1;
else
name_strings[n][0] = '\0';
@@ -336,7 +336,7 @@
goto Exit;
}
- if ( FT_NEW_ARRAY( offset_table, num_glyphs ) ||
+ if ( FT_QNEW_ARRAY( offset_table, num_glyphs ) ||
FT_STREAM_READ( offset_table, num_glyphs ) )
goto Fail;