summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-08 16:14:27 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-15 09:28:40 +0100
commit0117b6e07afbe6b05add3baba61aae8d36093051 (patch)
treeaa0caf949a99b3bf9de9c244ffbd45333c7da291
parent6a74d80616929d756322a1cb61ab890d16c43e99 (diff)
Unref contact returned by empathy_contact_list_get_members
empathy_contact_list_get_members return a list of reffed contacts.
-rw-r--r--libempathy/empathy-contact-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index a3f7575a3..23794e001 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -490,8 +490,9 @@ contact_manager_lookup_contact (EmpathyContactManager *manager,
if (!tp_strdiff (contact_id, id_cur) &&
!tp_strdiff (account_name, name_cur)) {
retval = contact;
- break;
}
+
+ g_object_unref (contact);
}
g_list_free (members);