From 93efc2933b71107bcc4c72bd6a05c62ce78e1735 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 16 Jan 2015 19:03:25 +0300 Subject: [PATCH] Fix SIGSEGV at SALOME exit --- src/SalomeApp/SalomeApp_Application.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index b9cb79b08..8c68a1e71 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -404,7 +404,7 @@ void SalomeApp_Application::onExit() if ( result ) { if ( !killServers ) myIsCloseFromExit = true; SUIT_Session::session()->closeSession( SUIT_Session::ASK, killServers ); - myIsCloseFromExit = false; + if ( SUIT_Session::session()->applications().count() > 0 ) myIsCloseFromExit = false; } } -- 2.39.2