aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 707031afb..f6f0e255d 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1364,9 +1364,13 @@ update_geocode (EmpathyContact *contact)
DEBUG ("\t - street: %s", str);
}
- g_object_ref (contact);
- geoclue_geocode_address_to_position_async (geocode, address,
- geocode_cb, contact);
+ if (g_hash_table_size (address) > 0)
+ {
+ g_object_ref (contact);
+
+ geoclue_geocode_address_to_position_async (geocode, address,
+ geocode_cb, contact);
+ }
g_hash_table_unref (address);
}