mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
c/util: Fix double free when failing to import non-Vulkan swapchain
This commit is contained in:
parent
20ac197a6f
commit
b29776fa1e
|
@ -582,7 +582,6 @@ comp_swapchain_import_init(struct comp_swapchain *sc,
|
|||
xrt_result_t res = do_post_create_vulkan_setup(vk, info, sc);
|
||||
if (res != XRT_SUCCESS) {
|
||||
vk_ic_destroy(vk, &sc->vkic);
|
||||
free(sc);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue