From: Aaron Watry Date: Fri, 15 Nov 2013 22:09:41 +0000 (-0600) Subject: r600/pipe: Stop leaking context->start_compute_cs_cmd.buf on EG/CM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ddabe0d523416693f28e293d8d3d918bdb612ca;p=mesa.git 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" --- diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 4016bbe1520..74e007b2279 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); }