From: Eric Anholt Date: Tue, 12 Mar 2019 21:59:21 +0000 (-0700) Subject: v3d: Fix leak of the renderonly struct on screen destruction. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=486b181fd758c246c2d1eaa1975a858e84d64c32;p=mesa.git v3d: Fix leak of the renderonly struct on screen destruction. This makes v3d match vc4's destroy path. Fixes: e113b21cb779 ("v3d: Add renderonly support.") --- diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index e413b007360..7ccf5b143ff 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -70,6 +70,7 @@ v3d_screen_destroy(struct pipe_screen *pscreen) util_hash_table_destroy(screen->bo_handles); v3d_bufmgr_destroy(pscreen); slab_destroy_parent(&screen->transfer_pool); + free(screen->ro); if (using_v3d_simulator) v3d_simulator_destroy(screen);