Gui: Fix crash in ~PythonBaseWorkbench with Python 3.12
This commit is contained in:
@@ -1057,6 +1057,7 @@ PythonBaseWorkbench::~PythonBaseWorkbench()
|
||||
delete _toolBar;
|
||||
delete _commandBar;
|
||||
if (_workbenchPy) {
|
||||
Base::PyGILStateLocker lock;
|
||||
_workbenchPy->setInvalid();
|
||||
_workbenchPy->DecRef();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user