summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-03-16 20:57:34 +0100
committerJakob Bornecrantz <jakob@vmware.com>2009-03-16 21:34:03 +0100
commitb95789ddb9ae0d8284349c6a2bb677a5b4b5573f (patch)
treef7c0127afd610988a24512a41305218670f0a67a /src/gallium/drivers/trace
parentcddf629282bd0c8bbdeb1d0b6723fce65585b313 (diff)
trace: Fix memory leak
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r--src/gallium/drivers/trace/tr_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index c5bae0eed2..c894972904 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -878,8 +878,9 @@ trace_context_set_vertex_buffers(struct pipe_context *_pipe,
for (i = 0; i < num_buffers; i++)
_buffers[i].buffer = trace_buffer_unwrap(tr_ctx, buffers[i].buffer);
pipe->set_vertex_buffers(pipe, num_buffers, _buffers);
+ free(_buffers);
} else {
- pipe->set_vertex_buffers(pipe, num_buffers, buffers);
+ pipe->set_vertex_buffers(pipe, num_buffers, NULL);
}
trace_dump_call_end();