diff options
author | Patrice Mandin <[email protected]> | 2008-03-30 21:52:36 +0200 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2008-03-30 21:53:31 +0200 |
commit | 7b389f8d2f307fa0714494f2a43e9141cc04ed3e (patch) | |
tree | e2383b2d188810947eed06d84fe66d659b524cc9 /src/gallium/drivers/nv30/nv30_miptree.c | |
parent | 833b1fb152851ba0d4fa2a5ba4702ee98d9bc217 (diff) |
nv30: use FREE macro
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_miptree.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_miptree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv30/nv30_miptree.c b/src/gallium/drivers/nv30/nv30_miptree.c index 6fdcf42a243..afb05fdd2bf 100644 --- a/src/gallium/drivers/nv30/nv30_miptree.c +++ b/src/gallium/drivers/nv30/nv30_miptree.c @@ -72,7 +72,7 @@ nv30_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; } @@ -93,9 +93,9 @@ nv30_miptree_release(struct pipe_screen *screen, struct pipe_texture **pt) pipe_buffer_reference(ws, &nv30mt->buffer, NULL); for (l = 0; l <= mt->last_level; l++) { if (nv30mt->level[l].image_offset) - free(nv30mt->level[l].image_offset); + FREE(nv30mt->level[l].image_offset); } - free(nv30mt); + FREE(nv30mt); } } |