summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-08-03 16:51:32 +0200
committerChristian König <[email protected]>2012-08-08 12:36:49 +0200
commitbe42a45e023aed5fd82647719bb81bee49a9a2ac (patch)
treeb40e61f7dac4b242a6763fdfc112846afdb7a3f0 /src/gallium
parent8c44e5a144009a03c20befa6468d19d41c802795 (diff)
radeonsi: fix memory leak and/or segfaults
Fix a stupid typo that could lead to memory leaks and/or segfaults. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_pm4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pm4.c b/src/gallium/drivers/radeonsi/radeonsi_pm4.c
index 0aad78fdcb4..12facafbfa8 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pm4.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_pm4.c
@@ -119,7 +119,7 @@ void si_pm4_free_state(struct r600_context *rctx,
}
for (int i = 0; i < state->nbo; ++i) {
- si_resource_reference(&state->bo[idx], NULL);
+ si_resource_reference(&state->bo[i], NULL);
}
FREE(state);
}