summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pelloux@gmail.com>2011-06-10 13:57:21 +0200
committerAlex Deucher <alexdeucher@gmail.com>2011-06-13 10:47:07 -0400
commitb19d86701eb6b04a0b7bcf43af06c4ce4fc30299 (patch)
tree976374ce9e449c7dbc6ea121f2045d8fbcb237d7
parent77b7e1b58fcc4823b6b1f4fa4296c810db218f8a (diff)
r600g: fixed bo memory leak issue
pipe_resource_reference call was miossing, thus creating massive memory under certain conditions. Fix : https://bugs.freedesktop.org/show_bug.cgi?id=37168
-rw-r--r--src/gallium/drivers/r600/r600_translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_translate.c b/src/gallium/drivers/r600/r600_translate.c
index 7482d15e12f..307fd57e21a 100644
--- a/src/gallium/drivers/r600/r600_translate.c
+++ b/src/gallium/drivers/r600/r600_translate.c
@@ -48,6 +48,7 @@ void r600_translate_index_buffer(struct r600_pipe_context *r600,
&r600->context, *index_buffer, 0, *start, count, ptr);
pipe_resource_reference(index_buffer, out_buffer);
+ pipe_resource_reference(&out_buffer, NULL);
*index_size = 2;
*start = out_offset / 2;
break;