core/manager: Use g_autoptr more

In the clients list.
This commit is contained in:
Georges Basile Stavracas Neto
2026-03-03 20:09:51 -03:00
parent 9f956c93d4
commit e1438b3c8e
+2 -5
View File
@@ -981,8 +981,7 @@ void
gcal_manager_refresh (GcalManager *self)
{
g_autolist(ESource) collections = NULL;
GList *clients;
GList *l;
g_autoptr(GList) clients = NULL;
GCAL_ENTRY;
@@ -1009,7 +1008,7 @@ gcal_manager_refresh (GcalManager *self)
clients = g_hash_table_get_values (self->clients);
/* refresh clients */
for (l = clients; l != NULL; l = l->next)
for (GList *l = clients; l != NULL; l = l->next)
{
GcalCalendar *calendar = l->data;
EClient *client;
@@ -1027,8 +1026,6 @@ gcal_manager_refresh (GcalManager *self)
self->clients_synchronizing++;
}
g_list_free (clients);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SYNCHRONIZING]);
GCAL_EXIT;