Skip to content

vulkan/wsi/wayland: Fix double free on error condition

Ivan Briano requested to merge ibriano/mesa:wsi into main

If wsi_configure_native_image() fails, it will call wsi_destroy_image_info() itself, so let's try to not call it again from wsi_wl_swapchain_destroy().

Fixes the CTS tests: dEQP-VK.wsi.wayland.swapchain.simulate_oom.*

Fixes: b626a5be ("vulkan/wsi/wayland: Split image creation")

Merge request reports