[tracker] libtracker-client: Fix double free, error was freed in callback



commit e2b407f7a3199d82b4ad72de90e0e79413fc3e93
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Jul 20 21:36:00 2010 +0200

    libtracker-client: Fix double free, error was freed in callback

 src/libtracker-client/tracker.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-client/tracker.c b/src/libtracker-client/tracker.c
index 3c7d907..753b7ad 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -666,7 +666,8 @@ callback_iterator (void     *buffer,
 
 			(* fad->iterator_callback) (NULL, iterator_error, fad->user_data);
 
-			g_error_free (iterator_error);
+			/* iterator_error was passed to the callback and should be
+			 * disposed there */
 		}
 
 		/* Always free input GError. We want to behave exactly as if this



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