[tracker] TrackerEvolutionPlugin: free error in DBus responses if any.



commit 9c00306271f197f12d8bab706773ecf47631dda5
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Oct 22 14:49:55 2009 +0200

    TrackerEvolutionPlugin: free error in DBus responses if any.

 src/plugins/evolution/tracker-evolution-plugin.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 9f97224..47bb378 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -308,8 +308,14 @@ folder_registry_new (const gchar *account_uri,
 }
 
 static void
-on_replied (GError *error, gpointer user_data) 
-{ 
+on_replied (GError   *error,
+	    gpointer  user_data)
+{
+	if (error) {
+		g_warning ("Error updating data: %s\n", error->message);
+		g_error_free (error);
+	}
+
 	g_object_unref (user_data);
 }
 



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