summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2011-12-05 18:42:38 -0500
committerJerome Glisse <[email protected]>2011-12-05 18:42:38 -0500
commite368eefc6866d78e2a004db2fdb13e08e06e0839 (patch)
treee24f32ae43f704d8734bba70f065915040e7a558 /src/gallium/drivers
parentbbc320a94def6178028a4c46012c737839e1cf61 (diff)
r600g: fix error path and use util_slab_free
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index f1b69565fd5..f4388867a92 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -177,7 +177,7 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
rbuffer->b.user_ptr = NULL;
if (!r600_init_resource(rscreen, rbuffer, templ->width0, alignment, templ->bind, templ->usage)) {
- FREE(rbuffer);
+ util_slab_free(&rscreen->pool_buffers, rbuffer);
return NULL;
}
return &rbuffer->b.b.b;