vulkan/wsi: fix cleanup when dup() fails
authorEric Engestrom <eric@engestrom.ch>
Tue, 10 Mar 2020 17:54:41 +0000 (18:54 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 22:43:25 +0000 (22:43 +0000)
commit1fa259b035c000b590a91a5b51412a2ff1972ab0
tree6465993afe173dbd6a7933e12d31101f98fc43ca
parent6e035c01fb95686b9c48f2930104b90c7d12f0f7
vulkan/wsi: fix cleanup when dup() fails

Fixes: f5433e4d6ce247b86dae ("vulkan/wsi: Add modifiers support to wsi_create_native_image")
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4137>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4137>
src/vulkan/wsi/wsi_common.c