SDL: GPU: Fix memory leak in VULKAN_CreateDevice (#10631)

From d1a2c57fb99f29c38f5091ea69e866d8fa6f1bf8 Mon Sep 17 00:00:00 2001
From: Andrei Alexeyev <[EMAIL REDACTED]>
Date: Fri, 30 Aug 2024 08:15:08 +0300
Subject: [PATCH] GPU: Fix memory leak in VULKAN_CreateDevice (#10631)

---
 src/gpu/vulkan/SDL_gpu_vulkan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index be14c2f32dbd3..2ae62771e0032 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -4854,6 +4854,7 @@ static void VULKAN_DestroyDevice(
     SDL_free(renderer->shadersToDestroy);
     SDL_free(renderer->samplersToDestroy);
     SDL_free(renderer->framebuffersToDestroy);
+    SDL_free(renderer->allocationsToDefrag);
 
     SDL_DestroyMutex(renderer->allocatorLock);
     SDL_DestroyMutex(renderer->disposeLock);