From: Jason Ekstrand Date: Wed, 2 Nov 2016 00:18:30 +0000 (-0700) Subject: vulkan/wsi/x11: Clean up connections in finish_wsi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=daeb21e47845795d0320811db1e202540fba356b;p=mesa.git vulkan/wsi/x11: Clean up connections in finish_wsi Signed-off-by: Jason Ekstrand Reviewed-by: Dave Airlie Reviewed-by: Eric Engestrom Cc: "13.0" --- diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index eee2359d03a..98f09236fa5 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -946,6 +946,10 @@ wsi_x11_finish_wsi(struct wsi_device *wsi_device, (struct wsi_x11 *)wsi_device->wsi[VK_ICD_WSI_PLATFORM_XCB]; if (wsi) { + struct hash_entry *entry; + hash_table_foreach(wsi->connections, entry) + wsi_x11_connection_destroy(alloc, entry->data); + _mesa_hash_table_destroy(wsi->connections, NULL); pthread_mutex_destroy(&wsi->mutex);