Commit 618d0834c711c5e47e04d2e61fd72a937bd8428e

Alexei Podtelezhnikov 2021-04-26T17:14:28

[pfr] Avoid some memory zeroing. * src/pfr/pfrobjs.c (pfr_face_init) : Tweak memory macro. * src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps, pfr_phy_font_load): Ditto.

diff --git a/ChangeLog b/ChangeLog
index ef22e6a..d366fb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-04-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
+	[pfr] Avoid some memory zeroing.
+
+	* src/pfr/pfrobjs.c (pfr_face_init) : Tweak memory macro.
+	* src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps,
+	pfr_phy_font_load): Ditto.
+
+2021-04-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
 	* src/winfonts/winfnt.c (FNT_Face_Init): Tweak memory macro.
 
 2021-04-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
diff --git a/src/pfr/pfrload.c b/src/pfr/pfrload.c
index 17dbaeb..a9c1e28 100644
--- a/src/pfr/pfrload.c
+++ b/src/pfr/pfrload.c
@@ -601,7 +601,7 @@
 
     PFR_CHECK( count * 2 );
 
-    if ( FT_NEW_ARRAY( snaps, count ) )
+    if ( FT_QNEW_ARRAY( snaps, count ) )
       goto Exit;
 
     phy_font->vertical.stem_snaps = snaps;
@@ -953,7 +953,7 @@
 
       PFR_CHECK( count * 2 );
 
-      if ( FT_NEW_ARRAY( phy_font->blue_values, count ) )
+      if ( FT_QNEW_ARRAY( phy_font->blue_values, count ) )
         goto Fail;
 
       for ( n = 0; n < count; n++ )
diff --git a/src/pfr/pfrobjs.c b/src/pfr/pfrobjs.c
index 2b5ee49..5302fac 100644
--- a/src/pfr/pfrobjs.c
+++ b/src/pfr/pfrobjs.c
@@ -213,7 +213,7 @@
         FT_Memory        memory = pfrface->stream->memory;
 
 
-        if ( FT_NEW_ARRAY( pfrface->available_sizes, count ) )
+        if ( FT_QNEW_ARRAY( pfrface->available_sizes, count ) )
           goto Exit;
 
         size   = pfrface->available_sizes;