summaryrefslogtreecommitdiffstats
path: root/common/pixman_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/pixman_utils.c
parent440ac41cf1dc09a4dde43790f9f9d5a83bfb4a45 (diff)
downloadspice-af4672326bdd88fbdbc4bd62a2a7563dc7d2077d.tar.gz
spice-af4672326bdd88fbdbc4bd62a2a7563dc7d2077d.tar.xz
spice-af4672326bdd88fbdbc4bd62a2a7563dc7d2077d.zip
Use the spice allocator in common/
Diffstat (limited to 'common/pixman_utils.c')
-rw-r--r--common/pixman_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/pixman_utils.c b/common/pixman_utils.c
index 05ac03d7..b946a1c0 100644
--- a/common/pixman_utils.c
+++ b/common/pixman_utils.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include "mem.h"
#ifndef ASSERT
#define ASSERT(x) if (!(x)) { \
@@ -909,7 +910,7 @@ pixman_bool_t spice_pixman_region32_init_rects (pixman_region32_t *region,
if (count < 10) {
boxes = boxes_array;
} else {
- boxes = (pixman_box32_t *)malloc(sizeof(pixman_box32_t) * count);
+ boxes = spice_new(pixman_box32_t, count);
if (boxes == NULL) {
return FALSE;
}