[tracker/libtracker-sparql-porting: 26/34] 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/libtracker-sparql-porting: 26/34] tracker-miner-fs: Fixed memory leak when setting up volumes
- Date: Mon, 16 Aug 2010 10:22:56 +0000 (UTC)
commit 01e23bc6abd740e6f23f4e4821b264955f0262d0
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]