Skip to content

Commit

Permalink
vulkan: Swapped out a free() that should have been an SDL_free().
Browse files Browse the repository at this point in the history
Fixes (for real this time!) the Visual Studio builds.
  • Loading branch information
icculus committed May 20, 2019
1 parent ebbb295 commit 4bd8083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_vulkan_utils.c
Expand Up @@ -301,7 +301,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "vulkandisplay: Display: %s Native resolution: %ux%u",
displayProperties[displayId].displayName, extent.width, extent.height);

free(displayProperties);
SDL_free(displayProperties);
displayProperties = NULL;

/* Get display mode properties for the chosen display */
Expand Down

0 comments on commit 4bd8083

Please sign in to comment.