From 06ecabc6766531971acd954ae2827652f2c7087d Mon Sep 17 00:00:00 2001 From: Sergio Valor Martinez Date: Thu, 1 Dec 2022 10:43:58 +0100 Subject: [PATCH] Corregido un "memory leak" en texture.cpp --- source/common/texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/texture.cpp b/source/common/texture.cpp index 79e0b92..dce9ed2 100644 --- a/source/common/texture.cpp +++ b/source/common/texture.cpp @@ -103,6 +103,7 @@ bool Texture::loadFromFile(std::string path, SDL_Renderer *renderer, bool verbos } // Return success + stbi_image_free(data); texture = newTexture; return texture != nullptr; }