From 6cb211121bb2e21cda40f2912d3005882641f530 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 28 Nov 2018 15:22:07 -0800 Subject: [PATCH] iris: Unref unbound_tex resource Plugs a 12536 byte leak --- src/gallium/drivers/iris/iris_state.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d241831edf8..6342da5c081 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4746,6 +4746,8 @@ iris_destroy_state(struct iris_context *ice) } free(ice->state.genx); + pipe_resource_reference(&ice->state.unbound_tex.res, NULL); + pipe_resource_reference(&ice->state.last_res.cc_vp, NULL); pipe_resource_reference(&ice->state.last_res.sf_cl_vp, NULL); pipe_resource_reference(&ice->state.last_res.color_calc, NULL); -- 2.30.2