aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-03-18 09:31:27 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-03-18 09:31:27 -0500
commit1523323751cba68b7db8a3c39c35882d34590efc (patch)
tree276d4de94741e6158cb425db957b1b97f5c47ee2
parent54b21fbdf26c6b55dfc353238696fd4ada1609f7 (diff)
downloadayatana-indicator-datetime-1523323751cba68b7db8a3c39c35882d34590efc.tar.gz
ayatana-indicator-datetime-1523323751cba68b7db8a3c39c35882d34590efc.tar.bz2
ayatana-indicator-datetime-1523323751cba68b7db8a3c39c35882d34590efc.zip
leak: plug leaks related to use of gconf_client_get_list()
-rw-r--r--src/datetime-service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index ecf2807..5b92029 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -532,7 +532,7 @@ calendar_app_is_usable (void)
GSList *accounts_list = gconf_client_get_list (gconf, "/apps/evolution/mail/accounts", GCONF_VALUE_STRING, NULL);
const guint n = g_slist_length (accounts_list);
g_debug ("found %u evolution accounts", n);
- g_slist_free (accounts_list);
+ g_slist_free_full (accounts_list, g_free);
return n > 0;
}
@@ -790,6 +790,8 @@ update_appointment_menu_items (gpointer user_data)
g_object_unref(ecal);
}
}
+ g_slist_free_full (cal_list, g_free);
+
g_debug("Number of ECalComponents returned: %d", g_list_length(comp_instances));
GList *sorted_comp_instances = g_list_sort(comp_instances, compare_comp_instances);
comp_instances = NULL;