Skip to content

Commit

Permalink
vulkan: Fixed use-after-free bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 12, 2019
1 parent b530d75 commit 32ead2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/video/SDL_vulkan_utils.c
Expand Up @@ -400,9 +400,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
vkGetDisplayPlaneSupportedDisplaysKHR(physicalDevice, i, &planeSupportedDisplaysCount, NULL);
if (result != VK_SUCCESS || planeSupportedDisplaysCount == 0)
{
/* No supported displays, on to next plane. */
SDL_free(displayPlaneProperties);
continue;
continue; /* No supported displays, on to next plane. */
}
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "vulkandisplay: Number of supported displays for plane %u: %u", i, planeSupportedDisplaysCount);

Expand Down

0 comments on commit 32ead2c

Please sign in to comment.