mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
sixel: sixel_fini(): free image data
Normally, this data is always free:d indirectly, when the sixel image that took over ownership is destroyed. But let’s play it safe.
This commit is contained in:
parent
b119a8a24a
commit
f9a730f33b
1 changed files with 1 additions and 0 deletions
1
sixel.c
1
sixel.c
|
|
@ -28,6 +28,7 @@ get_bg(const struct terminal *term)
|
||||||
void
|
void
|
||||||
sixel_fini(struct terminal *term)
|
sixel_fini(struct terminal *term)
|
||||||
{
|
{
|
||||||
|
free(term->sixel.image.data);
|
||||||
free(term->sixel.private_palette);
|
free(term->sixel.private_palette);
|
||||||
free(term->sixel.shared_palette);
|
free(term->sixel.shared_palette);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue