Always check return value of VULKAN_INTERNAL_QuerySwapchainSupport(), if 1st call to vkGetPhysicalDeviceSurfacePresentModesKHR() fails then outputDetails->formatsLength is not 0 but outputDetails->formats is still not initialised.
Always free outputDetails->formats on error in VULKAN_INTERNAL_QuerySwapchainSupport().
Use correct type for allocation of commandBuffer->presentDatas.
Do some allocations later to avoid memory leaks on error.
Description
Always check return value of
VULKAN_INTERNAL_QuerySwapchainSupport()
, if 1st call tovkGetPhysicalDeviceSurfacePresentModesKHR()
fails thenoutputDetails->formatsLength
is not 0 butoutputDetails->formats
is still not initialised. Always freeoutputDetails->formats
on error inVULKAN_INTERNAL_QuerySwapchainSupport()
. Use correct type for allocation ofcommandBuffer->presentDatas
. Do some allocations later to avoid memory leaks on error.Existing Issue(s)
None