From: Tilman Sauerbeck Date: Sun, 31 Oct 2010 11:16:25 +0000 (+0100) Subject: r600g: Fixed two memory leaks in winsys. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=907efeea18efcbb037f19de9eb563a355c92affb;p=mesa.git r600g: Fixed two memory leaks in winsys. Signed-off-by: Tilman Sauerbeck --- diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 2521ff96473..82d5deaad28 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -611,7 +611,9 @@ void r600_context_fini(struct r600_context *ctx) } free(ctx->range[i].blocks); } + free(ctx->blocks); free(ctx->reloc); + free(ctx->bo); free(ctx->pm4); if (ctx->fence_bo) { r600_bo_reference(ctx->radeon, &ctx->fence_bo, NULL);