X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSession%2FSALOME_Session_Server.cxx;h=4d34b5e5822f4c08160cc49bb2b8ca8d13929900;hb=79bb613bc02da5864a9c4199f78c078cc77e78e2;hp=65284c93d644cf0f2b84c1f852b844b010d9e782;hpb=c749d0058791f7355fda38093837c1a69bdfde48;p=modules%2Fgui.git diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 65284c93d..4d34b5e58 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -653,9 +653,11 @@ int main( int argc, char **argv ) init->explicit_destroy(); // After ORB destruction - PyGILState_Ensure(); if(Py_IsInitialized()) - Py_Finalize(); + { + PyGILState_Ensure(); + Py_Finalize(); + } if ( shutdownAll ) killOmniNames();