[tracker] tracker-miner-fs: Fixed 2 memory leaks found by valgrind
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-fs: Fixed 2 memory leaks found by valgrind
- Date: Thu, 1 Oct 2009 10:58:03 +0000 (UTC)
commit d5e0bf25887622cacfe4d4339a7ecb11ebcde01b
Author: Martyn Russell <martyn lanedo com>
Date: Thu Oct 1 11:57:03 2009 +0100
tracker-miner-fs: Fixed 2 memory leaks found by valgrind
src/libtracker-client/tracker.c | 4 ++++
src/tracker-miner-fs/tracker-config.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-client/tracker.c b/src/libtracker-client/tracker.c
index 6cc197c..3280e5f 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -276,6 +276,10 @@ tracker_disconnect (TrackerClient *client)
g_object_unref (client->proxy_resources);
}
+ if (client->pending_calls) {
+ g_hash_table_unref (client->pending_calls);
+ }
+
g_free (client);
}
diff --git a/src/tracker-miner-fs/tracker-config.c b/src/tracker-miner-fs/tracker-config.c
index 2bc408b..f8d09ab 100644
--- a/src/tracker-miner-fs/tracker-config.c
+++ b/src/tracker-miner-fs/tracker-config.c
@@ -848,6 +848,9 @@ config_load (TrackerConfig *config)
filtered = tracker_path_list_filter_duplicates (dirs, ".");
g_object_set (config, conversions[i].property, filtered, NULL);
+
+ g_slist_foreach (filtered, (GFunc) g_free, NULL);
+ g_slist_free (filtered);
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]