[Mesa-dev] [PATCH 3/6] r600g: Fixed two memory leaks in winsys.
Tilman Sauerbeck
tilman at code-monkey.de
Sun Oct 31 09:38:55 PDT 2010
Signed-off-by: Tilman Sauerbeck <tilman at code-monkey.de>
---
src/gallium/winsys/r600/drm/r600_hw_context.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index 2521ff9..82d5dea 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);
--
1.7.3.1
More information about the mesa-dev
mailing list