[tracker/libtracker-sparql-porting: 26/35] 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/35] tracker-miner-fs: Fixed memory leak when setting up volumes
- Date: Fri, 13 Aug 2010 14:49:23 +0000 (UTC)
commit adec47b028818fcdb94b3b26a87b754ef9ccc30a
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]