[tracker/wal: 26/53] tracker-miner-fs: Fixed memory leak when setting up volumes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wal: 26/53] tracker-miner-fs: Fixed memory leak when setting up volumes
- Date: Mon, 16 Aug 2010 10:20:52 +0000 (UTC)
commit caa770b9da58a183b19b3615e2bd10c546bd78e9
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]