From 616f55e491686779b760b0726f237f13f36ccdbb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 12 Sep 2012 13:12:51 +0200 Subject: empathy_roster_model_get_groups_for_individual: return a (transfer full) list gee_iterator_get() returns a new string, so we have to pass its ownership to the list to not leak it. https://bugzilla.gnome.org/show_bug.cgi?id=683864 --- libempathy-gtk/empathy-roster-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy-gtk/empathy-roster-view.c') diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index d1e1c7891..b5f2ccd07 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -409,7 +409,7 @@ individual_added (EmpathyRosterView *self, add_to_group (self, individual, EMPATHY_ROSTER_MODEL_GROUP_UNGROUPED); } - g_list_free (groups); + g_list_free_full (groups, g_free); } tp_g_signal_connect_object (individual, "notify::is-favourite", @@ -595,7 +595,7 @@ contact_in_top (EmpathyRosterView *self, (GCompareFunc) g_strcmp0) != NULL) result = TRUE; - g_list_free (groups); + g_list_free_full (groups, g_free); return result; } -- cgit v1.2.3