Skip to content
Snippets Groups Projects
Commit bf04be17 authored by Ivan Briano's avatar Ivan Briano Committed by Marge Bot
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>
parent 1e7ea180
No related branches found
No related tags found
Loading
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