From 5678b2eb5d18da99bc03bc4c57c93b726c164dc9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 15 Mar 2012 08:52:19 +0100 Subject: Free the GError in Geoclue callbacks --- libempathy-gtk/empathy-location-manager.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libempathy-gtk') 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; } -- cgit v1.2.3