[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 93/115] libtracker-miner: Fix memory leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/shuffle-libtracker-miner: 93/115] libtracker-miner: Fix memory leak
- Date: Thu, 12 Dec 2019 11:14:40 +0000 (UTC)
commit 1de7c1df14538082e57a01f20a4adb15047085a6
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 8ea25d697..69ed4e7db 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]