[tracker] libtracker-client: Fix double free, error was freed in callback
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-client: Fix double free, error was freed in callback
- Date: Tue, 20 Jul 2010 19:36:25 +0000 (UTC)
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]