Mesa (staging/19.0): v3d: Fix leak of the renderonly struct on screen destruction.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Mar 13 17:03:59 UTC 2019
Module: Mesa
Branch: staging/19.0
Commit: e3db589330d49abc1d25310061912ee354d0756b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3db589330d49abc1d25310061912ee354d0756b
Author: Eric Anholt <eric at anholt.net>
Date: Tue Mar 12 14:59:21 2019 -0700
v3d: Fix leak of the renderonly struct on screen destruction.
This makes v3d match vc4's destroy path.
Fixes: e113b21cb779 ("v3d: Add renderonly support.")
(cherry picked from commit 486b181fd758c246c2d1eaa1975a858e84d64c32)
---
src/gallium/drivers/v3d/v3d_screen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
index c539daf02b9..81246600f85 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);
More information about the mesa-commit
mailing list