summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-02-14 17:36:47 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-15 11:30:06 +0900
commit6a7820d31f9b697888ce9f9b193bacc86e646fe1 (patch)
tree8aaf979de3f5896bce5ccaa5887c73c2e8d6e587 /src/mesa
parentd3cd39493c1e776c1e21045920744a27de2787f1 (diff)
gallium: Use align_free() to free aligned memories.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/pipebuffer/pb_buffer_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/pipebuffer/pb_buffer_malloc.c b/src/mesa/pipe/pipebuffer/pb_buffer_malloc.c
index c1b7759874..9e8244f909 100644
--- a/src/mesa/pipe/pipebuffer/pb_buffer_malloc.c
+++ b/src/mesa/pipe/pipebuffer/pb_buffer_malloc.c
@@ -110,7 +110,7 @@ pb_malloc_buffer_create(size_t size,
buf = CALLOC_STRUCT(malloc_buffer);
if(!buf)
return NULL;
-
+
buf->base.base.refcount = 1;
buf->base.base.alignment = desc->alignment;
buf->base.base.usage = desc->usage;
@@ -119,7 +119,7 @@ pb_malloc_buffer_create(size_t size,
buf->data = align_malloc(size, desc->alignment < sizeof(void*) ? sizeof(void*) : desc->alignment);
if(!buf->data) {
- FREE(buf);
+ align_free(buf);
return NULL;
}