]> git.0d.be Git - empathy.git/commitdiff
Fix memleak in tp_contact_list_group_member_removed_cb. Free group name when
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 19 Apr 2009 16:01:10 +0000 (18:01 +0200)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 21 Apr 2009 08:42:14 +0000 (10:42 +0200)
it is removed from the group list.

libempathy/empathy-tp-contact-list.c

index ef11587ad262a4e8e251c9ec7c7155cec7abb55d..d4b99e4c4f1d91582d8ef411aa988e58a20679de 100644 (file)
@@ -154,6 +154,7 @@ tp_contact_list_group_member_removed_cb (EmpathyTpGroup       *group,
                        empathy_contact_get_id (contact),
                        empathy_contact_get_handle (contact),
                        group_name);
+               g_free (l->data);
                *groups = g_list_delete_link (*groups, l);
                g_signal_emit_by_name (list, "groups-changed", contact,
                                       group_name,