diff options
Diffstat (limited to 'Build/source/libs/cairo/cairo-src/src/cairo-cogl-gradient.c')
-rw-r--r-- | Build/source/libs/cairo/cairo-src/src/cairo-cogl-gradient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/libs/cairo/cairo-src/src/cairo-cogl-gradient.c b/Build/source/libs/cairo/cairo-src/src/cairo-cogl-gradient.c index f8c80041629..0923e3b6d95 100644 --- a/Build/source/libs/cairo/cairo-src/src/cairo-cogl-gradient.c +++ b/Build/source/libs/cairo/cairo-src/src/cairo-cogl-gradient.c @@ -397,7 +397,7 @@ _cairo_cogl_get_linear_gradient (cairo_cogl_device_t *device, } if (!gradient) { - gradient = malloc (sizeof (cairo_cogl_linear_gradient_t) + + gradient = _cairo_malloc (sizeof (cairo_cogl_linear_gradient_t) + sizeof (cairo_gradient_stop_t) * (n_stops - 1)); if (!gradient) return CAIRO_INT_STATUS_NO_MEMORY; @@ -413,7 +413,7 @@ _cairo_cogl_get_linear_gradient (cairo_cogl_device_t *device, } else _cairo_cogl_linear_gradient_reference (gradient); - entry = malloc (sizeof (cairo_cogl_linear_texture_entry_t)); + entry = _cairo_malloc (sizeof (cairo_cogl_linear_texture_entry_t)); if (!entry) { status = CAIRO_INT_STATUS_NO_MEMORY; goto BAIL; |