[tracker] tracker-miner-fs: Fix memleak in get_metadata_fast_cb()



commit 38489cec6a5c63c1524af86b5427ab1bb28d26ad
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Jul 20 21:35:27 2010 +0200

    tracker-miner-fs: Fix memleak in get_metadata_fast_cb()

 src/miners/fs/tracker-miner-files.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 3c6b5fb..b8d83eb 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2024,6 +2024,9 @@ get_metadata_fast_cb (void     *buffer,
 		if (error->code != G_IO_ERROR_CANCELLED) {
 			/* ProcessFileData and error are freed in the callback */
 			(* data->callback) (NULL, NULL, NULL, error, process_data);
+		} else {
+			/* Free error ourselves */
+			g_error_free (error);
 		}
 	} else {
 		if (buffer_size) {



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