[tracker/libtracker-sparql-porting: 26/34] tracker-miner-fs: Fixed memory leak when setting up volumes



commit a66c9838c427db07a079bb3a4225d3bbf8cfc5ec
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]