Skip to content
Snippets Groups Projects
Commit d9083cff authored by Ivan Briano's avatar Ivan Briano Committed by Dylan Baker
Browse files

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


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")

Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <mesa/mesa!16257>
(cherry picked from commit bf04be17)
parent 52ab0ca9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment