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 <deathsimple@vodafone.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Christian König 2012-08-03 16:51:32 +02:00
parent 8c44e5a144
commit be42a45e02
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}