From 9c722e8a2ea914e0693cefc49f7849a8eee12e1d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 1 Nov 2016 17:18:30 -0700 Subject: 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" (cherry picked from commit daeb21e47845795d0320811db1e202540fba356b) --- src/vulkan/wsi/wsi_common_x11.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 32a1be4..2280651 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -891,6 +891,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); -- cgit v1.1