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
This commit is contained in:
Fina Wilke 2022-03-14 22:33:35 +01:00 committed by Matthias Clasen
parent e8dd40ccca
commit 9cc051ffa5

View File

@ -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