summaryrefslogtreecommitdiff
path: root/common/canvas_utils.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-03-10 21:11:46 +0100
committerAlexander Larsson <alexl@redhat.com>2010-03-11 12:14:08 +0100
commitaf4672326bdd88fbdbc4bd62a2a7563dc7d2077d (patch)
tree0dffc6a00dd9de1539149889e67c22e9a5b279f3 /common/canvas_utils.c
parent440ac41cf1dc09a4dde43790f9f9d5a83bfb4a45 (diff)
Use the spice allocator in common/
Diffstat (limited to 'common/canvas_utils.c')
-rw-r--r--common/canvas_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/canvas_utils.c b/common/canvas_utils.c
index 2ab8f0b..95c168b 100644
--- a/common/canvas_utils.c
+++ b/common/canvas_utils.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#endif
+#include "mem.h"
#ifdef WIN32
extern int gdi_handlers;
@@ -89,7 +90,7 @@ static inline pixman_image_t *__surface_create_stride(pixman_format_code_t forma
pixman_image_t *surface;
PixmanData *pixman_data;
- data = (uint8_t *)malloc(abs(stride) * height);
+ data = (uint8_t *)spice_malloc_n(abs(stride), height);
if (stride < 0) {
stride_data = data + (-stride) * (height - 1);
} else {