iris: plug leaks

This commit is contained in:
Kenneth Graunke
2018-06-16 09:56:59 -07:00
parent 477ea6c39a
commit c763ecaa65
5 changed files with 26 additions and 2 deletions

View File

@@ -252,6 +252,8 @@ iris_batch_free(struct iris_batch *batch)
_mesa_hash_table_destroy(batch->cache.render, NULL);
_mesa_set_destroy(batch->cache.depth, NULL);
iris_destroy_binder(&batch->binder);
if (batch->state_sizes) {
_mesa_hash_table_destroy(batch->state_sizes, NULL);
gen_batch_decode_ctx_finish(&batch->decoder);