[gnome-calendar] source-dialog: Don't use g_autolist
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: Don't use g_autolist
- Date: Mon, 29 Apr 2019 20:14:11 +0000 (UTC)
commit b8c80e08e89dc920fd70f7ec1d1d45783f1d07cf
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Apr 29 17:13:30 2019 -0300
source-dialog: Don't use g_autolist
Chaos ensues with it.
src/gcal-source-dialog.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]