From: Kenneth Graunke Date: Wed, 28 Nov 2018 23:22:07 +0000 (-0800) Subject: iris: Unref unbound_tex resource X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cb211121bb2e21cda40f2912d3005882641f530;p=mesa.git iris: Unref unbound_tex resource Plugs a 12536 byte leak --- 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);