summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv04/nv04_miptree.c
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2008-07-08 20:06:57 +0200
committerStephane Marchesin <[email protected]>2008-07-08 20:06:57 +0200
commit511693d00c5f8641375efd16e08289586d62e562 (patch)
tree5a924ecae20ce64e790fb2b41e374e25e01c8293 /src/gallium/drivers/nv04/nv04_miptree.c
parent98c1b12ea0117e325b7eaebd92298d8cef7cad15 (diff)
nv04: use FREE/MALLOC like a good gallium boy should.
Diffstat (limited to 'src/gallium/drivers/nv04/nv04_miptree.c')
-rw-r--r--src/gallium/drivers/nv04/nv04_miptree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv04/nv04_miptree.c b/src/gallium/drivers/nv04/nv04_miptree.c
index ab2d2386bee..97f679731ea 100644
--- a/src/gallium/drivers/nv04/nv04_miptree.c
+++ b/src/gallium/drivers/nv04/nv04_miptree.c
@@ -62,7 +62,7 @@ nv04_miptree_create(struct pipe_screen *screen, const struct pipe_texture *pt)
mt->buffer = ws->buffer_create(ws, 256, PIPE_BUFFER_USAGE_PIXEL,
mt->total_size);
if (!mt->buffer) {
- free(mt);
+ FREE(mt);
return NULL;
}
@@ -83,9 +83,9 @@ nv04_miptree_release(struct pipe_screen *screen, struct pipe_texture **pt)
pipe_buffer_reference(ws, &nv04mt->buffer, NULL);
for (l = 0; l <= mt->last_level; l++) {
if (nv04mt->level[l].image_offset)
- free(nv04mt->level[l].image_offset);
+ FREE(nv04mt->level[l].image_offset);
}
- free(nv04mt);
+ FREE(nv04mt);
}
}