Browse Source

gpu: Fix memory leak in Vulkan backend.

Ryan C. Gordon 6 months ago
parent
commit
3a6a3ab64f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/gpu/vulkan/SDL_gpu_vulkan.c

+ 1 - 0
src/gpu/vulkan/SDL_gpu_vulkan.c

@@ -3205,6 +3205,7 @@ static void VULKAN_INTERNAL_DestroyDescriptorSetCache(
         SDL_free(descriptorSetCache->pools[i].descriptorSets);
         SDL_free(descriptorSetCache->pools[i].descriptorPools);
     }
+    SDL_free(descriptorSetCache->pools);
     SDL_free(descriptorSetCache);
 }