[empathy] Don't need to keep the address around
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Don't need to keep the address around
- Date: Wed, 27 May 2009 12:58:27 -0400 (EDT)
commit 7965e120d0ba25581349ba990420d513bf8d5102
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Tue May 26 16:14:38 2009 -0400
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 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index 17d73d6..1593977 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]