mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
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() {
|
||||
mEngine->clearComponentCache();
|
||||
mEngine->clearSingletons();
|
||||
delete mEngine;
|
||||
if (mEngine) {
|
||||
mEngine->clearComponentCache();
|
||||
mEngine->clearSingletons();
|
||||
delete mEngine;
|
||||
}
|
||||
mEngine = nullptr;
|
||||
// Wait 500ms to let time for log te be stored.
|
||||
// mNotifier destroyed in mEngine deletion as it is its parent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue