From f9f8ea7070bcd5386785712bbe7a0035532f7858 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 16 Jun 2018 10:04:32 -0700 Subject: iris: more leak fixes --- src/gallium/drivers/iris/iris_state.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium') diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index f24e59d5a60..4d1b3f1aa8c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1351,6 +1351,7 @@ iris_set_framebuffer_state(struct pipe_context *ctx, isl_emit_depth_stencil_hiz_s(isl_dev, cso_z->packets, &info); + free(ice->state.cso_depthbuffer); ice->state.cso_depthbuffer = cso_z; ice->state.dirty |= IRIS_DIRTY_DEPTH_BUFFER; @@ -2762,6 +2763,7 @@ iris_destroy_state(struct iris_context *ice) } pipe_surface_reference(&ice->state.framebuffer.zsbuf, NULL); + free(ice->state.cso_vp); free(ice->state.cso_depthbuffer); pipe_resource_reference(&ice->state.last_res.cc_vp, NULL); -- cgit v1.2.3