shithub: cstory

Download patch

ref: 2911bfda5c6051a768dd012e98aa6eae7f82b7f0
parent: 752b4cee3f9dd968e9129b185fca90bb76b9dede
author: Gabriel Ravier <gabravier@gmail.com>
date: Mon Jan 6 07:02:32 EST 2020

Removed memory leak in Backend_LoadGlyph

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Backends/Rendering/SDLTexture.cpp
+++ b/src/Backends/Rendering/SDLTexture.cpp
@@ -303,6 +303,7 @@
 	}
 
 	SDL_UpdateTexture(glyph->texture, NULL, buffer, width * 4);
+	free(buffer);
 
 	glyph->width = width;
 	glyph->height = height;
--