From: Colin Clark Date: Thu, 7 Oct 2021 09:08:14 +0000 (+0100) Subject: Fix runtime error X-Git-Tag: v1.7~42 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=9ac0a0c8411df646eea80444a62da791c1a68405;hp=a62c430abe5d8fecb86d5ec2a339b87207b54950 Fix runtime error If GPU accel. is selected and images are scrolled through rapidly, occasionally there will be a GdkPixbuf error logged. This patch first checks if the pixbuf has been created. --- diff --git a/src/renderer-clutter.c b/src/renderer-clutter.c index e32c5a47..3937275f 100644 --- a/src/renderer-clutter.c +++ b/src/renderer-clutter.c @@ -302,7 +302,7 @@ static gboolean rc_area_changed_cb(gpointer data) update_display_pixbuf(rc); - if (pr->func_post_process) + if (pr->func_post_process && pr->pixbuf) { pr->func_post_process(pr, &rc->display_pixbuf, 0, 0, gdk_pixbuf_get_width(pr->pixbuf), gdk_pixbuf_get_height(pr->pixbuf), pr->post_process_user_data); }