term: free sixel images on reset

This commit is contained in:
Daniel Eklöf 2020-02-22 10:47:16 +01:00
parent b03ffa3720
commit ad5b2030f0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1121,6 +1121,10 @@ term_reset(struct terminal *term, bool hard)
term->meta.esc_prefix = true;
term->meta.eight_bit = true;
tll_foreach(term->sixel_images, it)
sixel_destroy(&it->item);
tll_free(term->sixel_images);
if (!hard)
return;