From c88f3cb5cb7771dc822dfb16b830e8efbb304056 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 30 Jan 2025 09:30:20 +0100 Subject: [PATCH] [sixel] Added debug allocations functions --- src/terminal/sixel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/terminal/sixel.c b/src/terminal/sixel.c index 473444c8b..690bfe868 100644 --- a/src/terminal/sixel.c +++ b/src/terminal/sixel.c @@ -1050,7 +1050,12 @@ el_sixel_get_image(char *data, int length, int *outlen) *outlen = 0; #ifdef HAVE_MEMFD_CREATE +#ifdef CONFIG_DEBUG + init_allocator(); + status = sixel_encoder_new(&encoder, el_sixel_allocator); +#else status = sixel_encoder_new(&encoder, NULL); +#endif if (SIXEL_FAILED(status)) { goto error;