* src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro.

This commit is contained in:
Alexei Podtelezhnikov 2021-05-01 09:22:26 -04:00
parent 56ae943050
commit 2583b6085e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro.
2021-05-01 Alexei Podtelezhnikov <apodtele@gmail.com>
[truetype] Avoid some memory zeroing.

View File

@ -430,7 +430,7 @@
goto DestroyExit;
}
if ( FT_NEW_ARRAY( rows, imgHeight ) )
if ( FT_QNEW_ARRAY( rows, imgHeight ) )
{
error = FT_THROW( Out_Of_Memory );
goto DestroyExit;