Core: Fix a missing Python interpreter lock
ReportView has a missing Python interpreter lock. It is not breaking FreeCAD in general but it is deemed a bug nonetheless. See the issue.
This commit is contained in:
committed by
Chris Hennes
parent
8f32cab1d6
commit
01874ca898
@@ -377,11 +377,13 @@ public:
|
||||
~Data()
|
||||
{
|
||||
if (replace_stdout) {
|
||||
Base::PyGILStateLocker lock;
|
||||
Py_DECREF(replace_stdout);
|
||||
replace_stdout = nullptr;
|
||||
}
|
||||
|
||||
if (replace_stderr) {
|
||||
Base::PyGILStateLocker lock;
|
||||
Py_DECREF(replace_stderr);
|
||||
replace_stderr = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user