From 907efeea18efcbb037f19de9eb563a355c92affb Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 31 Oct 2010 12:16:25 +0100 Subject: [PATCH] r600g: Fixed two memory leaks in winsys. Signed-off-by: Tilman Sauerbeck --- src/gallium/winsys/r600/drm/r600_hw_context.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2