[Telepathy-commits] [telepathy-glib/master] Destroy the result hash table after returning from InspectContacts and keep the ref to all valid handles untill the end
Sjoerd Simons
sjoerd at luon.net
Tue Aug 19 04:25:20 PDT 2008
20080728171813-93b9a-913d7ca5a61880e32f8c9045641b01167ae195c7.gz
---
telepathy-glib/contacts-mixin.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/telepathy-glib/contacts-mixin.c b/telepathy-glib/contacts-mixin.c
index 15ad29a..653b449 100644
--- a/telepathy-glib/contacts-mixin.c
+++ b/telepathy-glib/contacts-mixin.c
@@ -318,10 +318,12 @@ tp_contacts_mixin_inspect_contacts (
func (G_OBJECT(iface), valid_handles, result);
}
- tp_handles_unref (contact_repo, valid_handles);
-
tp_svc_connection_interface_contacts_return_from_inspect_contacts (context,
result);
+
+ g_hash_table_destroy (result);
+
+ tp_handles_unref (contact_repo, valid_handles);
}
/**
--
1.5.6.3
More information about the Telepathy-commits
mailing list