diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index 1908fe8f3..d358897b0 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -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