c/util: Fix double free when failing to import non-Vulkan swapchain

This commit is contained in:
Fernando Velazquez Innella 2024-04-17 11:19:07 -04:00
parent 20ac197a6f
commit b29776fa1e

View file

@ -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;
}