vc4: Fix leak of the bo_handles table.
authorEric Anholt <eric@anholt.net>
Tue, 2 Aug 2016 17:57:01 +0000 (10:57 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 3 Aug 2016 17:25:08 +0000 (10:25 -0700)
src/gallium/drivers/vc4/vc4_screen.c

index aeb6c9a784eedced3f6d0b35f30eb512abe6891a..1c3c605c2dac7588446bb5cc98c1ac76a6f4ad2d 100644 (file)
@@ -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);