Corregido un "memory leak" en texture.cpp

This commit is contained in:
JailDesigner committed 2022-12-01 10:43:58 +01:00
1 parent 5d89a3057e
commit 06ecabc676
1 file changed
+1
+1
View File
@@ -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;
}