[tracker: 12/21] libtracker-miner: Fix memory leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 12/21] libtracker-miner: Fix memory leak
- Date: Sun, 17 Feb 2019 20:43:54 +0000 (UTC)
commit f138da64edd7a6d0db7e4f6fd11195ce6fd30743
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Wed Jan 23 19:29:32 2019 +0000
libtracker-miner: Fix memory leak
Use g_clear_object on priv->tree to avoid memory leaks.
src/libtracker-miner/tracker-monitor.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index ccf85976e..26aa8b877 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -314,6 +314,7 @@ tracker_monitor_finalize (GObject *object)
g_hash_table_unref (priv->cached_events);
g_hash_table_unref (priv->monitors);
+ g_clear_object (&priv->tree);
G_OBJECT_CLASS (tracker_monitor_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]