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:
Pieter Hijma
2024-06-27 14:17:24 +02:00
committed by Chris Hennes
parent 8f32cab1d6
commit 01874ca898

View File

@@ -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;
}