aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-map-view.c
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-27 04:14:38 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:09 +0800
commit7965e120d0ba25581349ba990420d513bf8d5102 (patch)
treef69e4747ee0622edd8f40159d24603c2a7e13b3a /src/empathy-map-view.c
parent5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f (diff)
downloadgsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.tar
gsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.tar.gz
gsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.tar.bz2
gsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.tar.lz
gsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.tar.xz
gsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.tar.zst
gsoc2013-empathy-7965e120d0ba25581349ba990420d513bf8d5102.zip
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.
Diffstat (limited to 'src/empathy-map-view.c')
-rw-r--r--src/empathy-map-view.c8
1 files changed, 2 insertions, 6 deletions
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