Commit 2df9c15e96c45fd89d0cf5e6fb890397df4b76f9

Mathieu Eyraud 2021-02-22T14:51:42

Fix memory leak in KMSDRM_Vulkan_CreateSurface Variable `device_props` is never freed.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/kmsdrm/SDL_kmsdrmvulkan.c b/src/video/kmsdrm/SDL_kmsdrmvulkan.c
index 76a293b..130a142 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvulkan.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvulkan.c
@@ -440,6 +440,8 @@ clean:
         SDL_free (physical_devices);
     if (displays_props)
         SDL_free (displays_props);
+    if (device_props)
+        SDL_free (device_props);
     if (planes_props)
         SDL_free (planes_props);
     if (modes_props)