Mesa (master): vulkan/wsi/x11: Clean up connections in finish_wsi

Jason Ekstrand jekstrand at kemper.freedesktop.org
Wed Nov 2 16:27:26 UTC 2016


Module: Mesa
Branch: master
Commit: daeb21e47845795d0320811db1e202540fba356b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=daeb21e47845795d0320811db1e202540fba356b

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Nov  1 17:18:30 2016 -0700

vulkan/wsi/x11: Clean up connections in finish_wsi

Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
Cc: "13.0" <mesa-stable at lists.freedesktop.org>

---

 src/vulkan/wsi/wsi_common_x11.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
index eee2359..98f0923 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);




More information about the mesa-commit mailing list