Fix crash for secondary application.
This commit is contained in:
parent
39473a8e00
commit
2a2f495053
1 changed files with 5 additions and 3 deletions
|
|
@ -601,9 +601,11 @@ void App::initCppInterfaces() {
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
||||||
void App::clean() {
|
void App::clean() {
|
||||||
mEngine->clearComponentCache();
|
if (mEngine) {
|
||||||
mEngine->clearSingletons();
|
mEngine->clearComponentCache();
|
||||||
delete mEngine;
|
mEngine->clearSingletons();
|
||||||
|
delete mEngine;
|
||||||
|
}
|
||||||
mEngine = nullptr;
|
mEngine = nullptr;
|
||||||
// Wait 500ms to let time for log te be stored.
|
// Wait 500ms to let time for log te be stored.
|
||||||
// mNotifier destroyed in mEngine deletion as it is its parent
|
// mNotifier destroyed in mEngine deletion as it is its parent
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue