diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index ce118297..dae63b63 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -2037,7 +2037,7 @@ goa_account_removed_cb (GoaClient *client, static void setup_context (GcalSourceDialog *self) { - g_autolist (GoaAccount) accounts = NULL; + GList *accounts = NULL; GcalManager *manager; GoaClient *client; GList *l; @@ -2059,6 +2059,8 @@ setup_context (GcalSourceDialog *self) g_signal_connect (manager, "source-added", G_CALLBACK (add_source), self); g_signal_connect (manager, "source-removed", G_CALLBACK (remove_source), self); + g_list_free_full (accounts, g_object_unref); + GCAL_EXIT; }