Commit fb6a716d authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-store: Destroy the direct connection on exit

And let it shut down the internal data manager. Fixes possible crashes
as the TrackerDirectConnection is not disposed and there may be other
internal threads trying to access the TrackerDataManager after shutdown.
parent 98ba945c
......@@ -399,6 +399,8 @@ tracker_direct_connection_finalize (GObject *object)
tracker_db_interface_sqlite_wal_checkpoint (wal_iface, TRUE, NULL);
tracker_data_manager_shutdown (priv->data_manager);
g_clear_object (&priv->store);
g_clear_object (&priv->journal);
g_clear_object (&priv->ontology);
......@@ -342,8 +342,8 @@ License which can be viewed at:
Tracker.Writeback.shutdown ();
Tracker.Events.shutdown ();
data_manager.shutdown ();
data_manager = null;
connection = null;
Tracker.DBus.shutdown ();
Tracker.Log.shutdown ();
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