From 2911bfda5c6051a768dd012e98aa6eae7f82b7f0 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Mon, 6 Jan 2020 12:02:32 +0100 Subject: [PATCH] Removed memory leak in Backend_LoadGlyph Signed-off-by: Gabriel Ravier --- src/Backends/Rendering/SDLTexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Backends/Rendering/SDLTexture.cpp b/src/Backends/Rendering/SDLTexture.cpp index e2acb50b..05ae0eca 100644 --- a/src/Backends/Rendering/SDLTexture.cpp +++ b/src/Backends/Rendering/SDLTexture.cpp @@ -303,6 +303,7 @@ Backend_Glyph* Backend_LoadGlyph(const unsigned char *pixels, unsigned int width } SDL_UpdateTexture(glyph->texture, NULL, buffer, width * 4); + free(buffer); glyph->width = width; glyph->height = height;