* src/sdf/ftsdf.c (sdf_{edge,contour,shape}_new): Use FT_QALLOC.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/ChangeLog b/ChangeLog
index c5678ba..dbc2a41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+ * src/sdf/ftsdf.c (sdf_{edge,contour,shape}_new): Use FT_QALLOC.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
[sfnt] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/sfnt/sfdriver.c (get_win_string, get_apple_string,
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index b80b1cb..a58d144 100644
--- 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;