From 18afee58f0d7d576959a127cd42a466fce5290b3 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Tue, 6 Aug 2019 12:49:55 +0100 Subject: [PATCH] Bug fix #626: Animated GIFS lead to high CPU load https://github.com/BestImageViewer/geeqie/issues/626 Cure a memory leak. A less significant memory leak remains. --- src/layout_image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layout_image.c b/src/layout_image.c index a52e6cea..4b46c0fc 100644 --- a/src/layout_image.c +++ b/src/layout_image.c @@ -398,6 +398,8 @@ static void animation_async_ready_cb(GObject *source_object, GAsyncResult *res, if (animation->iter = gdk_pixbuf_animation_get_iter(animation->gpa,NULL)) { animation->iter = gdk_pixbuf_animation_get_iter(animation->gpa, NULL); + // FIXME: the reference count is being incremented here. Reason unknown. + g_object_unref(animation->gpa); animation->data_adr = animation->lw->image->image_fd; animation->delay = gdk_pixbuf_animation_iter_get_delay_time(animation->iter); animation->valid = TRUE; -- 2.20.1