summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-03-12 14:59:21 -0700
committerDylan Baker <[email protected]>2019-03-13 14:26:36 -0700
commitf953d0f52f0d3463e1b1810b02ab53a19545968b (patch)
treeba011cf494945342d8010d6cd03be9db65062b54
parent93386fbc5e10d943f02f77797a30bf6fabd5bd80 (diff)
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)
-rw-r--r--src/gallium/drivers/v3d/v3d_screen.c1
1 files changed, 1 insertions, 0 deletions
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);