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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 8cca70944..c766857ee 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1625,7 +1625,7 @@ geocode_cb (GObject *source,
g_object_notify ((GObject *) contact, "location");
out:
- tp_clear_pointer (&result, g_hash_table_unref);
+ tp_clear_pointer (&resolved, g_hash_table_unref);
g_object_unref (contact);
}
@@ -1645,6 +1645,8 @@ update_geocode (EmpathyContact *contact)
return;
geocode = geocode_object_new_for_params (location);
+ if (geocode == NULL)
+ return;
geocode_object_resolve_async (geocode, NULL, geocode_cb,
g_object_ref (contact));