Browse Source

Fix memory leak in KMSDRM_Vulkan_CreateSurface

Variable `device_props` is never freed.
Mathieu Eyraud 4 years ago
parent
commit
2df9c15e96
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/video/kmsdrm/SDL_kmsdrmvulkan.c

+ 2 - 0
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)