Commit f138da64 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

libtracker-miner: Fix memory leak

Use g_clear_object on priv->tree to avoid memory leaks.
parent 354a1cd6
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment