summaryrefslogtreecommitdiff
path: root/telepathy-glib/contacts-mixin.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2008-07-28 17:18:13 +0000
committerSjoerd Simons <sjoerd@luon.net>2008-07-28 17:18:13 +0000
commitd940ba046d73586e3b06a5a82aa79b21d464b974 (patch)
tree7bf7415af8bc409784b6ca9daec858e1d6bb7954 /telepathy-glib/contacts-mixin.c
parent9f74163244f7990b2d38384885980747c674980d (diff)
downloadtelepathy-glib-d940ba046d73586e3b06a5a82aa79b21d464b974.tar.gz
Destroy the result hash table after returning from InspectContacts and keep the ref to all valid handles untill the end
20080728171813-93b9a-913d7ca5a61880e32f8c9045641b01167ae195c7.gz
Diffstat (limited to 'telepathy-glib/contacts-mixin.c')
-rw-r--r--telepathy-glib/contacts-mixin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-glib/contacts-mixin.c b/telepathy-glib/contacts-mixin.c
index 15ad29ac2..653b44954 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);
}
/**