Removed memory leak in Backend_LoadGlyph

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2020-01-06 12:02:32 +01:00
parent 752b4cee3f
commit 2911bfda5c

View file

@ -303,6 +303,7 @@ Backend_Glyph* Backend_LoadGlyph(const unsigned char *pixels, unsigned int width
} }
SDL_UpdateTexture(glyph->texture, NULL, buffer, width * 4); SDL_UpdateTexture(glyph->texture, NULL, buffer, width * 4);
free(buffer);
glyph->width = width; glyph->width = width;
glyph->height = height; glyph->height = height;