diff --git a/ChangeLog b/ChangeLog index 9d9a6a803..3556c772d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2021-05-01 Alexei Podtelezhnikov + + * src/sfnt/pngshim.c (Load_SBit_Png): Tweak allocaton macro. + 2021-05-01 Alexei Podtelezhnikov [truetype] Avoid some memory zeroing. diff --git a/src/sfnt/pngshim.c b/src/sfnt/pngshim.c index 19b5db8a5..02fe37440 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;