mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -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
292a7c5686
commit
8d06278a29
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