From: Kenneth Graunke Date: Sat, 16 Jun 2018 17:04:32 +0000 (-0700) Subject: iris: more leak fixes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9f8ea7070bcd5386785712bbe7a0035532f7858;p=mesa.git iris: more leak fixes --- 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);