winsys/radeon: Destroy fd_hash table when the last winsys is removed.
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 8 May 2018 05:39:04 +0000 (01:39 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 10 May 2018 09:12:48 +0000 (05:12 -0400)
commit45dfa6f4e77fbb21f312eb6101db6c25acd4d483
treefb2c2b60cc07c08f592dbf38568ac490f6b3639d
parentd146768d139f887105464f0db5600dd046452a8f
winsys/radeon: Destroy fd_hash table when the last winsys is removed.

Fixes memory leak on module unload.
v2: Use util_hash_table helper function

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c