[empathy] Fix memleak in tp_contact_list_group_member_removed_cb. Free group name when



commit e0c48133ec3c73cf31ee2d3f3afda7282c617c49
Author: Lars-Peter Clausen <lars metafoo de>
Date:   Sun Apr 19 18:01:10 2009 +0200

    Fix memleak in tp_contact_list_group_member_removed_cb. Free group name when
    it is removed from the group list.
---
 libempathy/empathy-tp-contact-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index ef11587..d4b99e4 100644
--- a/libempathy/empathy-tp-contact-list.c
+++ b/libempathy/empathy-tp-contact-list.c
@@ -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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]