summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace/tr_buffer.c')
-rw-r--r--src/gallium/drivers/trace/tr_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_buffer.c b/src/gallium/drivers/trace/tr_buffer.c
index 6ffce1660ec..3cdb107dc6b 100644
--- a/src/gallium/drivers/trace/tr_buffer.c
+++ b/src/gallium/drivers/trace/tr_buffer.c
@@ -64,7 +64,8 @@ void
trace_buffer_destroy(struct trace_screen *tr_scr,
struct pipe_buffer *buffer)
{
- struct trace_buffer *tr_buf = trace_buffer(tr_scr, buffer);
+ struct trace_buffer *tr_buf = trace_buffer(buffer);
+
pipe_buffer_reference(&tr_buf->buffer, NULL);
FREE(tr_buf);
}