r600g: Fixed two memory leaks in winsys.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 31 Oct 2010 11:16:25 +0000 (12:16 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 2 Nov 2010 20:52:39 +0000 (21:52 +0100)
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/winsys/r600/drm/r600_hw_context.c

index 2521ff964732c42a314fc7f7ea8e44c0d082bfbf..82d5deaad283bc3dc207df8c3eba3e609db0a0c6 100644 (file)
@@ -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);