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; }