core/manager: Use g_autoptr more
In the clients list.
This commit is contained in:
@@ -981,8 +981,7 @@ void
|
|||||||
gcal_manager_refresh (GcalManager *self)
|
gcal_manager_refresh (GcalManager *self)
|
||||||
{
|
{
|
||||||
g_autolist(ESource) collections = NULL;
|
g_autolist(ESource) collections = NULL;
|
||||||
GList *clients;
|
g_autoptr(GList) clients = NULL;
|
||||||
GList *l;
|
|
||||||
|
|
||||||
GCAL_ENTRY;
|
GCAL_ENTRY;
|
||||||
|
|
||||||
@@ -1009,7 +1008,7 @@ gcal_manager_refresh (GcalManager *self)
|
|||||||
clients = g_hash_table_get_values (self->clients);
|
clients = g_hash_table_get_values (self->clients);
|
||||||
|
|
||||||
/* refresh clients */
|
/* refresh clients */
|
||||||
for (l = clients; l != NULL; l = l->next)
|
for (GList *l = clients; l != NULL; l = l->next)
|
||||||
{
|
{
|
||||||
GcalCalendar *calendar = l->data;
|
GcalCalendar *calendar = l->data;
|
||||||
EClient *client;
|
EClient *client;
|
||||||
@@ -1027,8 +1026,6 @@ gcal_manager_refresh (GcalManager *self)
|
|||||||
self->clients_synchronizing++;
|
self->clients_synchronizing++;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_list_free (clients);
|
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SYNCHRONIZING]);
|
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SYNCHRONIZING]);
|
||||||
|
|
||||||
GCAL_EXIT;
|
GCAL_EXIT;
|
||||||
|
|||||||
Reference in New Issue
Block a user