16 lines
537 B
Diff
16 lines
537 B
Diff
|
--- a/pyuno/source/loader/pyuno_loader.cxx 2023-11-22 15:50:37.920656691 +0300
|
||
|
+++ b/pyuno/source/loader/pyuno_loader.cxx 2023-11-22 16:05:21.772636218 +0300
|
||
|
@@ -230,10 +230,12 @@
|
||
|
|
||
|
PyThreadState *tstate = PyThreadState_Get();
|
||
|
PyEval_ReleaseThread( tstate );
|
||
|
+#if PY_VERSION_HEX < 0x030B0000
|
||
|
// This tstate is never used again, so delete it here.
|
||
|
// This prevents an assertion in PyThreadState_Swap on the
|
||
|
// PyThreadAttach below.
|
||
|
PyThreadState_Delete(tstate);
|
||
|
+#endif
|
||
|
}
|
||
|
}
|
||
|
};
|