The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/util: Fix double free when failing to initialize Vulkan swapchain

-2
-2
src/xrt/compositor/util/comp_swapchain.c
··· 532 532 if (ret != VK_SUCCESS) { 533 533 VK_ERROR(vk, "Failed to get native handles for images."); 534 534 vk_ic_destroy(vk, &sc->vkic); 535 - free(sc); 536 535 return XRT_ERROR_VULKAN; 537 536 } 538 537 for (uint32_t i = 0; i < sc->vkic.image_count; i++) { ··· 544 543 xrt_result_t res = do_post_create_vulkan_setup(vk, info, sc); 545 544 if (res != XRT_SUCCESS) { 546 545 vk_ic_destroy(vk, &sc->vkic); 547 - free(sc); 548 546 return res; 549 547 } 550 548