{
if ( myXmlHandler )
delete myXmlHandler;
+ if ( myInterp && myModule ) {
+ PyLockWrapper aLock = myInterp->GetLockWrapper();
+ Py_XDECREF(myModule);
+ }
}
/*!
// initialize Python subinterpreter (on per study) and put it in <myInterp> variable
initInterp( aStudyId );
- if ( !myInterp )
+ if ( !myInterp ) {
+ myLastActivateStatus = false;
return; // Error
+ }
// import Python GUI module
importModule();
- if ( !myModule )
+ if ( !myModule ) {
+ myLastActivateStatus = false;
return; // Error
+ }
// get python lock
PyLockWrapper aLock = myInterp->GetLockWrapper();
/* current Python subinterpreter */
SALOME_PYQT_PyInterp* myInterp;
/* Python GUI module loaded */
- PyObjWrapper myModule;
+ PyObject* myModule;
/* Python GUI being initialized (not zero only during the initialization)*/
static SALOME_PYQT_Module* myInitModule;