r600g: Cleanup block bo references in r600_context_fini().

This commit is contained in:
Henri Verbeet 2010-12-05 18:42:43 +01:00
parent c0c929cdac
commit 308cfb80f5

View file

@ -618,6 +618,9 @@ void r600_context_fini(struct r600_context *ctx)
range = &ctx->range[CTX_RANGE_ID(ctx, offset)];
range->blocks[CTX_BLOCK_ID(ctx, offset)] = NULL;
}
for (int k = 1; k <= block->nbo; k++) {
r600_bo_reference(ctx->radeon, &block->reloc[k].bo, NULL);
}
free(block);
}
}