iris: Don't leak the compute batch
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Nov 2018 17:56:37 +0000 (09:56 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_context.c

index 890505421fa646a86cbe61ba47014d0a03b13366..9283bff63115e32b610f9ba11c6d13ef888a5811 100644 (file)
@@ -133,6 +133,7 @@ iris_destroy_context(struct pipe_context *ctx)
    slab_destroy_child(&ice->transfer_pool);
 
    iris_batch_free(&ice->render_batch);
+   iris_batch_free(&ice->compute_batch);
    iris_destroy_binder(&ice->state.binder);
 
    ralloc_free(ice);