From 765ceb6a3615c257d8abc437ec79f7b2dec95bce Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Fri, 15 Nov 2013 16:09:41 -0600 Subject: [PATCH] r600/pipe: Stop leaking context->start_compute_cs_cmd.buf on EG/CM Found while tracking down memory leaks in VDPAU playback Reviewed-by: Tom Stellard CC: "10.0" (cherry picked from commit 3ddabe0d523416693f28e293d8d3d918bdb612ca) --- 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 633c22a1cce..dc5e3754aad 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -199,6 +199,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); }