[tracker/tracker-0.8] TrackerMinerFS: Plug some memory leaks.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] TrackerMinerFS: Plug some memory leaks.
- Date: Thu, 13 May 2010 14:14:48 +0000 (UTC)
commit d59a02d3909c80c955bd37a390e528785e598c8b
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed May 12 13:18:23 2010 +0200
TrackerMinerFS: Plug some memory leaks.
src/libtracker-miner/tracker-miner-fs.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 419e6f4..f8ca935 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -663,6 +663,10 @@ fs_finalize (GObject *object)
g_hash_table_unref (priv->mtime_cache);
}
+ if (priv->iri_cache) {
+ g_hash_table_unref (priv->iri_cache);
+ }
+
G_OBJECT_CLASS (tracker_miner_fs_parent_class)->finalize (object);
}
@@ -987,6 +991,8 @@ sparql_update_cb (GObject *object,
*/
g_hash_table_insert (fs->private->iri_cache, g_object_ref (data->file), NULL);
}
+
+ g_object_unref (parent);
}
}
@@ -1152,6 +1158,7 @@ ensure_iri_cache (TrackerMinerFS *fs,
g_main_loop_unref (data.main_loop);
g_hash_table_unref (data.values);
+ g_free (query);
}
static const gchar *
@@ -2202,6 +2209,7 @@ ensure_mtime_cache (TrackerMinerFS *fs,
g_main_loop_unref (data.main_loop);
g_hash_table_unref (data.values);
+ g_free (query);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]