Explicitly destroy experiences on shutdown

Fixes an occational crash if an experience accesses
the thingmanager while it is being shut down.
pull/523/head
Michael Zanetti 2022-05-04 00:45:23 +02:00
parent 45081ad64e
commit 8efe92e421
1 changed files with 3 additions and 0 deletions

View File

@ -196,6 +196,9 @@ NymeaCore::~NymeaCore()
qCDebug(dcCore) << "Shutting down \"Rule Engine\"";
delete m_ruleEngine;
qCDebug(dcCore()) << "Shutting down \"Experiences\"";
delete m_experienceManager;
// Next, ThingManager, so plugins don't access any resources any more.
qCDebug(dcCore) << "Shutting down \"Thing Manager\"";
delete m_thingManager;