diff options
author | Jakob Bornecrantz <[email protected]> | 2009-04-17 15:52:05 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-04-17 16:03:01 +0200 |
commit | 5800e0aad1e803fbe2a1e1a7f8abcdff58699901 (patch) | |
tree | 68907cb724217711d81eaeeb6f158495c4fb5653 /src/gallium/drivers/trace/tr_buffer.c | |
parent | dbb90436f8385a33b9938c66a0fa3eff8c36a4cc (diff) |
trace: Simplify trace_buffer function
Diffstat (limited to 'src/gallium/drivers/trace/tr_buffer.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_buffer.c | 3 |
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); } |