iris: Destroy the bufmgr
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Nov 2018 23:23:13 +0000 (15:23 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
Plugs a 12360 byte leak

src/gallium/drivers/iris/iris_screen.c

index b5c21b094758413de32a07c80c0636649e49caa3..3b390e65173df01e893fbafe92e000bb43f10285 100644 (file)
@@ -461,6 +461,7 @@ iris_destroy_screen(struct pipe_screen *pscreen)
    struct iris_screen *screen = (struct iris_screen *) pscreen;
    iris_bo_unreference(screen->workaround_bo);
    u_transfer_helper_destroy(pscreen->transfer_helper);
+   iris_bufmgr_destroy(screen->bufmgr);
    ralloc_free(screen);
 }