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.6.5+ds-1+rpi1~1^2~19^2~3^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9cc051ffa58327183362b321a1696a475a29d02c;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