SDL: Destroy properties after applying them to avoid memory leakage

From feadbffb67d96108aefa708fe10f919f82b66d22 Mon Sep 17 00:00:00 2001
From: r4nx <[EMAIL REDACTED]>
Date: Mon, 11 Mar 2024 03:06:42 +0200
Subject: [PATCH] Destroy properties after applying them to avoid memory
 leakage

---
 src/render/SDL_render.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 6bcba6c2756ad..d2508260956ff 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -1534,6 +1534,7 @@ SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *s
     SDL_SetNumberProperty(props, SDL_PROP_TEXTURE_CREATE_WIDTH_NUMBER, surface->w);
     SDL_SetNumberProperty(props, SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER, surface->h);
     texture = SDL_CreateTextureWithProperties(renderer, props);
+    SDL_DestroyProperties(props);
     if (!texture) {
         return NULL;
     }