1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-26 02:46:13 -04:00

[sixel] Reuse allocator

This commit is contained in:
Witold Filipczyk 2023-05-26 15:34:52 +02:00
parent 9582f865a6
commit c1b2b60f7c

View File

@ -825,7 +825,7 @@ add_image_to_document(struct document *doc, struct string *pixels, int lineno)
if (SIXEL_FAILED(status)) {
goto end;
}
status = sixel_frame_new(&frame, NULL);
status = sixel_frame_new(&frame, decoder->allocator);
if (SIXEL_FAILED(status)) {
goto end;
@ -903,7 +903,7 @@ copy_frame(struct image *src, int box_width, int box_height, int cell_width, int
if (SIXEL_FAILED(status)) {
goto end;
}
status = sixel_frame_new(&frame, NULL);
status = sixel_frame_new(&frame, decoder->allocator);
if (SIXEL_FAILED(status)) {
goto end;