From: Fina Wilke Date: Mon, 14 Mar 2022 21:33:35 +0000 (+0100) Subject: gtkplacessidebar: Prevent calling g_object_unref on null X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~310^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08f3acb53466bcd7426143a4b8947906398d6062;p=gtk4.git gtkplacessidebar: Prevent calling g_object_unref on null g_object_unref would be called on a null end_icon when provider_account_status is CLOUD_PROVIDERS_ACCOUNT_STATUS_IDLE --- diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index edc0620189..60f07e4558 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -921,7 +921,10 @@ create_cloud_provider_account_row (GtkPlacesSidebar *sidebar, g_free (tooltip); g_free (mount_uri); - g_object_unref (end_icon); + if (end_icon) { + g_object_unref (end_icon); + } + return TRUE; } else