diff options
author | Kenneth Graunke <[email protected]> | 2018-06-16 10:04:32 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | f9f8ea7070bcd5386785712bbe7a0035532f7858 (patch) | |
tree | 53fc9daedf22822be002ef21953483bc959e5012 | |
parent | c763ecaa65d9293905bd7d0ea2a379029c3df2a5 (diff) |
iris: more leak fixes
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |