[Mesa-dev] [PATCH 8/8] r600/pipe: Stop leaking context->start_compute_cs_cmd.buf on EG/CM

Aaron Watry awatry at gmail.com
Tue Dec 17 14:34:41 PST 2013


Found while tracking down memory leaks in VDPAU playback

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

CC: "10.0" <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/r600/r600_pipe.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 4016bbe..74e007b 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -192,6 +192,8 @@ static void r600_destroy_context(struct pipe_context *context)
 		rctx->b.ws->cs_destroy(rctx->b.rings.dma.cs);
 	}
 
+	FREE(rctx->start_compute_cs_cmd.buf);
+
 	r600_common_context_cleanup(&rctx->b);
 	FREE(rctx);
 }
-- 
1.8.3.2



More information about the mesa-dev mailing list