mcst-linux-kernel/patches-2024.06.26/libreoffice-6.3.0.4/0018-Avoid-obsolete-PyThrea...

16 lines
537 B
Diff
Raw Permalink Normal View History

2024-07-09 13:51:45 +03:00
--- 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
}
}
};