Mesa (master): vc4: Fix leak of the bo_handles table.

Eric Anholt anholt at kemper.freedesktop.org
Wed Aug 3 17:59:15 UTC 2016


Module: Mesa
Branch: master
Commit: 9f956909591fb259ce01f1882c3367978e8ec2fb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f956909591fb259ce01f1882c3367978e8ec2fb

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug  2 10:57:01 2016 -0700

vc4: Fix leak of the bo_handles table.

---

 src/gallium/drivers/vc4/vc4_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index aeb6c9a..1c3c605 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -96,6 +96,7 @@ vc4_screen_destroy(struct pipe_screen *pscreen)
 {
         struct vc4_screen *screen = vc4_screen(pscreen);
 
+        util_hash_table_destroy(screen->bo_handles);
         vc4_bufmgr_destroy(pscreen);
         close(screen->fd);
         ralloc_free(pscreen);




More information about the mesa-commit mailing list