From 5b76a9bee4003b5d4541bc83cbb41ecc1505dc89 Mon Sep 17 00:00:00 2001 From: oshaboy Date: Sat, 4 Nov 2023 22:03:15 +0200 Subject: [PATCH] Update chafa.c --- tools/chafa/chafa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/chafa/chafa.c b/tools/chafa/chafa.c index f0d020e6..bd0a4ff4 100644 --- a/tools/chafa/chafa.c +++ b/tools/chafa/chafa.c @@ -2709,6 +2709,8 @@ build_canvas (ChafaPixelType pixel_type, const guint8 *pixels, image = chafa_image_new (); chafa_image_set_frame (image, frame); chafa_canvas_set_image (canvas, image, placement_id); + chafa_image_unref (image); + chafa_frame_unref (frame); return canvas; }