Removed memory leak in Backend_LoadGlyph
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
752b4cee3f
commit
2911bfda5c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue