summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-11-01 17:18:30 -0700
committerEmil Velikov <emil.l.velikov@gmail.com>2016-11-09 13:16:22 +0000
commit9c722e8a2ea914e0693cefc49f7849a8eee12e1d (patch)
treec6f44b6383432532c8f313249409a015e2cf7b04 /src/vulkan
parentf622d3334733e0a1349e0283b6d03ded7f864e1e (diff)
downloadexternal_mesa3d-9c722e8a2ea914e0693cefc49f7849a8eee12e1d.zip
external_mesa3d-9c722e8a2ea914e0693cefc49f7849a8eee12e1d.tar.gz
external_mesa3d-9c722e8a2ea914e0693cefc49f7849a8eee12e1d.tar.bz2
vulkan/wsi/x11: Clean up connections in finish_wsi
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Cc: "13.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit daeb21e47845795d0320811db1e202540fba356b)
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/wsi/wsi_common_x11.c4
1 files changed, 4 insertions, 0 deletions
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);