* src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro.
diff --git a/ChangeLog b/ChangeLog
index 9d9a6a8..3556c77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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.
* src/truetype/ttinterp.c (Init_Context): Tweak allocation macro.
diff --git a/src/sfnt/pngshim.c b/src/sfnt/pngshim.c
index 19b5db8..02fe374 100644
--- a/src/sfnt/pngshim.c
+++ b/src/sfnt/pngshim.c
@@ -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;