Merge branch 'sprite-memory-leak' of https://github.com/dmgerman/kitty

This commit is contained in:
Kovid Goyal 2026-02-01 08:16:45 +05:30
commit 058b36788f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -118,7 +118,7 @@ free_sprite_data(FONTS_DATA_HANDLE fg) {
SpriteMap *sprite_map = (SpriteMap*)fg->sprite_map;
if (sprite_map) {
if (sprite_map->texture_id) free_texture(&sprite_map->texture_id);
if (sprite_map->decorations_map.texture_id) free_texture(&sprite_map->texture_id);
if (sprite_map->decorations_map.texture_id) free_texture(&sprite_map->decorations_map.texture_id);
free(sprite_map);
fg->sprite_map = NULL;
}