aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-15 15:52:19 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-15 15:52:19 +0800
commit5678b2eb5d18da99bc03bc4c57c93b726c164dc9 (patch)
tree49ab88023f293619c6fc811b722b4c25a532ad73
parentd6edab79ba1b0f8037f6c42e92ef98b0cdaaa843 (diff)
downloadgsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.tar
gsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.tar.gz
gsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.tar.bz2
gsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.tar.lz
gsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.tar.xz
gsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.tar.zst
gsoc2013-empathy-5678b2eb5d18da99bc03bc4c57c93b726c164dc9.zip
Free the GError in Geoclue callbacks
-rw-r--r--libempathy-gtk/empathy-location-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 22b2c2362..233afb788 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -452,6 +452,7 @@ update_resources_set_requirements_cb (GeoclueMasterClient *client,
if (error != NULL)
{
DEBUG ("set_requirements failed: %s", error->message);
+ g_error_free (error);
return;
}
@@ -486,6 +487,7 @@ create_address_cb (GeoclueMasterClient *client,
if (error != NULL)
{
DEBUG ("Failed to create GeoclueAddress: %s", error->message);
+ g_error_free (error);
return;
}
@@ -508,6 +510,7 @@ create_position_cb (GeoclueMasterClient *client,
if (error != NULL)
{
DEBUG ("Failed to create GeocluePosition: %s", error->message);
+ g_error_free (error);
return;
}
@@ -552,6 +555,7 @@ create_client_cb (GeoclueMaster *master,
if (error != NULL)
{
DEBUG ("Failed to create GeoclueMasterClient: %s", error->message);
+ g_error_free (error);
return;
}