1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-05-18 00:48:57 -04:00

[sixel] Added debug allocations functions

This commit is contained in:
Witold Filipczyk 2025-01-30 09:30:20 +01:00
parent 32788537fc
commit c88f3cb5cb

View File

@ -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;