Commit 4bd808346ace68fbb713089ddedca89b25beedd1

Ryan C. Gordon 2019-05-20T00:41:18

vulkan: Swapped out a free() that should have been an SDL_free(). Fixes (for real this time!) the Visual Studio builds.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/SDL_vulkan_utils.c b/src/video/SDL_vulkan_utils.c
index a26606d..6684e3b 100644
--- a/src/video/SDL_vulkan_utils.c
+++ b/src/video/SDL_vulkan_utils.c
@@ -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 */