aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-04-07 17:07:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-04-07 17:07:43 +0000
commitf9a730f33b14e61bf5466f6e2361b1d74dabcada (patch)
tree0b53bd6524c38004a955fa5657f36dad6c86b397
parentMerge pull request 'Don't copy default colors from config to each terminal instance' (#438) from ... (diff)
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.
-rw-r--r--sixel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 903fe8e4..f4d917f4 100644
--- a/sixel.c
+++ b/sixel.c
@@ -28,6 +28,7 @@ get_bg(const struct terminal *term)
void
sixel_fini(struct terminal *term)
{
+ free(term->sixel.image.data);
free(term->sixel.private_palette);
free(term->sixel.shared_palette);
}