/** * Destructor */ PythonScript::~PythonScript() { GlobalInterpreterLock pythonLock; observeAdd(false); observeAfterReplace(false); observePostDelete(false); observeADSClear(false); this->disconnect(); Py_XDECREF(localDict); }
/** * Destructor */ PythonScript::~PythonScript() { ScopedPythonGIL lock; this->abort(); observeAdd(false); observeAfterReplace(false); observePostDelete(false); observeADSClear(false); this->disconnect(); Py_XDECREF(m_algorithmInThread); Py_XDECREF(localDict); }