[tracker] tracker-miner-fs: Fixed memory leak when setting up volumes



commit 52861056d267cbbc87afefc586c2dfcf2e715a5a
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Jul 22 16:25:27 2010 +0100

    tracker-miner-fs: Fixed memory leak when setting up volumes

 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 68184c0..b9cc3dc 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -908,6 +908,9 @@ init_mount_points (TrackerMinerFiles *miner_files)
 		g_hash_table_replace (volumes, non_removable_device_urn, GINT_TO_POINTER (state));
 	}
 
+	g_slist_foreach (uuids, (GFunc) g_free, NULL);
+	g_slist_free (uuids);
+
 	/* Then, get all currently mounted REMOVABLE volumes, according to GIO */
 	uuids = tracker_storage_get_device_uuids (priv->storage, TRACKER_STORAGE_REMOVABLE, FALSE);
 	for (u = uuids; u; u = u->next) {



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