From 7965e120d0ba25581349ba990420d513bf8d5102 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Tue, 26 May 2009 16:14:38 -0400 Subject: Don't need to keep the address around Since Geoclue is passing the address to dbus, we don't need to keep the address around as it'll be copied anyway. --- src/empathy-map-view.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c index 17d73d67f..15939774f 100644 --- a/src/empathy-map-view.c +++ b/src/empathy-map-view.c @@ -185,10 +185,6 @@ map_view_geocode_cb (GeoclueGeocode *geocode, location = empathy_contact_get_location (EMPATHY_CONTACT (userdata)); - GHashTable *address = g_object_get_data (userdata, "geoclue-address"); - g_hash_table_destroy (address); - g_object_set_data (userdata, "geoclue-address", NULL); - if (error != NULL) { DEBUG ("Error geocoding location : %s", error->message); @@ -371,10 +367,10 @@ map_view_contacts_foreach (GtkTreeModel *model, if (str != NULL) g_hash_table_insert (address, g_strdup ("street"), str); - g_object_set_data (G_OBJECT (contact), "geoclue-address", address); - geoclue_geocode_address_to_position_async (window->geocode, address, map_view_geocode_cb, contact); + + g_hash_table_unref (address); } #endif -- cgit v1.2.3