[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 93/115] libtracker-miner: Fix memory leak



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]