From 721d7795cf01270be4b3f0e88a0aee310c30899f Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 26 May 2023 18:51:37 +0200 Subject: [PATCH] [sixel] Reuse allocator --- src/terminal/sixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/sixel.c b/src/terminal/sixel.c index 4ad8d4f8..fed3f906 100644 --- a/src/terminal/sixel.c +++ b/src/terminal/sixel.c @@ -921,7 +921,7 @@ copy_frame(struct image *src, int box_width, int box_height, int cell_width, int if (SIXEL_FAILED(status)) { goto end; } - status = sixel_encoder_new(&encoder, NULL); + status = sixel_encoder_new(&encoder, decoder->allocator); if (SIXEL_FAILED(status)) { goto end;