summaryrefslogtreecommitdiff
path: root/xps/xps_gradient.c
diff options
context:
space:
mode:
Diffstat (limited to 'xps/xps_gradient.c')
-rw-r--r--xps/xps_gradient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xps_gradient.c b/xps/xps_gradient.c
index 0c73fd65..4dcf1ef8 100644
--- a/xps/xps_gradient.c
+++ b/xps/xps_gradient.c
@@ -227,7 +227,7 @@ xps_draw_one_radial_gradient(xps_context *ctx, fz_matrix ctm,
shade->mesh_len = 6;
shade->mesh_cap = 6;
- shade->mesh = fz_calloc(ctx->ctx, shade->mesh_cap, sizeof(float));
+ shade->mesh = fz_malloc_array(ctx->ctx, shade->mesh_cap, sizeof(float));
shade->mesh[0] = x0;
shade->mesh[1] = y0;
shade->mesh[2] = r0;
@@ -268,7 +268,7 @@ xps_draw_one_linear_gradient(xps_context *ctx, fz_matrix ctm,
shade->mesh_len = 6;
shade->mesh_cap = 6;
- shade->mesh = fz_calloc(ctx->ctx, shade->mesh_cap, sizeof(float));
+ shade->mesh = fz_malloc_array(ctx->ctx, shade->mesh_cap, sizeof(float));
shade->mesh[0] = x0;
shade->mesh[1] = y0;
shade->mesh[2] = 0;