SDL: GPU D3D12: Fix command buffer leak

From 906044569d9e132f6b18b33aae69f7de30a164fb Mon Sep 17 00:00:00 2001
From: cosmonaut <[EMAIL REDACTED]>
Date: Fri, 30 Aug 2024 10:29:56 -0700
Subject: [PATCH] GPU D3D12: Fix command buffer leak

---
 src/gpu/d3d12/SDL_gpu_d3d12.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gpu/d3d12/SDL_gpu_d3d12.c b/src/gpu/d3d12/SDL_gpu_d3d12.c
index 4c40e46d04c92..7e3c1be0b73ac 100644
--- a/src/gpu/d3d12/SDL_gpu_d3d12.c
+++ b/src/gpu/d3d12/SDL_gpu_d3d12.c
@@ -1230,6 +1230,7 @@ static void D3D12_INTERNAL_DestroyCommandBuffer(D3D12CommandBuffer *commandBuffe
     SDL_free(commandBuffer->usedGraphicsPipelines);
     SDL_free(commandBuffer->usedComputePipelines);
     SDL_free(commandBuffer->usedUniformBuffers);
+    SDL_free(commandBuffer->textureDownloads);
     SDL_free(commandBuffer);
 }