[telepathy-gabble/master] location_get_locations: unref the locations hash table when destroying return_locations

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Aug 14 05:51:40 PDT 2009


gabble_presence_cache_get_location returns a reffed location so we
should unref it when we are done with it instead of destroying the
cached hash table.
---
 src/conn-location.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/conn-location.c b/src/conn-location.c
index 7cc08c1..14eaaf4 100644
--- a/src/conn-location.c
+++ b/src/conn-location.c
@@ -131,7 +131,7 @@ location_get_locations (GabbleSvcConnectionInterfaceLocation *iface,
   guint i;
   GError *error = NULL;
   GHashTable *return_locations = g_hash_table_new_full (g_direct_hash,
-      g_direct_equal, NULL, (GDestroyNotify) g_hash_table_destroy);
+      g_direct_equal, NULL, (GDestroyNotify) g_hash_table_unref);
 
   DEBUG ("GetLocation for contacts:");
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list