mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
vulkan: Fixed use-after-free bug.
This commit is contained in:
parent
b530d75afb
commit
32ead2cb46
@ -400,9 +400,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
|
|||||||
vkGetDisplayPlaneSupportedDisplaysKHR(physicalDevice, i, &planeSupportedDisplaysCount, NULL);
|
vkGetDisplayPlaneSupportedDisplaysKHR(physicalDevice, i, &planeSupportedDisplaysCount, NULL);
|
||||||
if (result != VK_SUCCESS || planeSupportedDisplaysCount == 0)
|
if (result != VK_SUCCESS || planeSupportedDisplaysCount == 0)
|
||||||
{
|
{
|
||||||
/* No supported displays, on to next plane. */
|
continue; /* No supported displays, on to next plane. */
|
||||||
SDL_free(displayPlaneProperties);
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "vulkandisplay: Number of supported displays for plane %u: %u", i, planeSupportedDisplaysCount);
|
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "vulkandisplay: Number of supported displays for plane %u: %u", i, planeSupportedDisplaysCount);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user