OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc320a
)
r600g: fix error path and use util_slab_free
author
Jerome Glisse
<jglisse@redhat.com>
Mon, 5 Dec 2011 23:42:38 +0000
(18:42 -0500)
committer
Jerome Glisse
<jglisse@redhat.com>
Mon, 5 Dec 2011 23:42:38 +0000
(18:42 -0500)
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/drivers/r600/r600_buffer.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_buffer.c
b/src/gallium/drivers/r600/r600_buffer.c
index
f1b6956
..
f438886
100644
(file)
--- 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;