[empathy] Free the GError in Geoclue callbacks



commit 5678b2eb5d18da99bc03bc4c57c93b726c164dc9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Mar 15 08:52:19 2012 +0100

    Free the GError in Geoclue callbacks

 libempathy-gtk/empathy-location-manager.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 22b2c23..233afb7 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;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]