shithub: freetype+ttf2subf

Download patch

ref: e6e5b67db339988d6cbd5c5c8877e5913f197f60
parent: 6ada59ab7c28be3bd361823523766374939ce598
author: Alexei Podtelezhnikov <[email protected]>
date: Fri Apr 23 17:33:03 EDT 2021

* src/sdf/ftsdf.c (sdf_{edge,contour,shape}_new): Use FT_QALLOC.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-04-23  Alexei Podtelezhnikov  <[email protected]>
 
+	* src/sdf/ftsdf.c (sdf_{edge,contour,shape}_new): Use FT_QALLOC.
+
+2021-04-23  Alexei Podtelezhnikov  <[email protected]>
+
 	[sfnt] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
 
 	* src/sfnt/sfdriver.c (get_win_string, get_apple_string,
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -495,7 +495,7 @@
       goto Exit;
     }
 
-    if ( !FT_ALLOC( ptr, sizeof ( *ptr ) ) )
+    if ( !FT_QALLOC( ptr, sizeof ( *ptr ) ) )
     {
       *ptr = null_edge;
       *edge = ptr;
@@ -534,7 +534,7 @@
       goto Exit;
     }
 
-    if ( !FT_ALLOC( ptr, sizeof ( *ptr ) ) )
+    if ( !FT_QALLOC( ptr, sizeof ( *ptr ) ) )
     {
       *ptr     = null_contour;
       *contour = ptr;
@@ -589,7 +589,7 @@
       goto Exit;
     }
 
-    if ( !FT_ALLOC( ptr, sizeof ( *ptr ) ) )
+    if ( !FT_QALLOC( ptr, sizeof ( *ptr ) ) )
     {
       *ptr        = null_shape;
       ptr->memory = memory;