diff options
author | Jason Ekstrand <[email protected]> | 2016-11-01 17:18:30 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-02 09:26:36 -0700 |
commit | daeb21e47845795d0320811db1e202540fba356b (patch) | |
tree | ddbfa7020e2783942a51e872af6639090abf064b /src/vulkan/wsi/wsi_common_x11.c | |
parent | fc0e9e3e40e4b044ce1b62c1b757941f4ed4c820 (diff) |
vulkan/wsi/x11: Clean up connections in finish_wsi
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common_x11.c')
-rw-r--r-- | src/vulkan/wsi/wsi_common_x11.c | 4 |
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 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); |