[empathy] Unref contact returned by empathy_contact_list_get_members
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Unref contact returned by empathy_contact_list_get_members
- Date: Mon, 15 Mar 2010 08:29:35 +0000 (UTC)
commit 0117b6e07afbe6b05add3baba61aae8d36093051
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Mar 8 16:14:27 2010 +0100
Unref contact returned by empathy_contact_list_get_members
empathy_contact_list_get_members return a list of reffed contacts.
libempathy/empathy-contact-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index a3f7575..23794e0 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]