forked from AuroraMiddleware/gtk
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:
parent
e8dd40ccca
commit
9cc051ffa5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user