Core: Add a missing interpeter lock

This commit is contained in:
Pieter Hijma
2024-07-04 01:11:08 +02:00
committed by Chris Hennes
parent 2e39b4167f
commit 7805c481b5

View File

@@ -26,6 +26,7 @@
#endif
#include "SmartPtrPy.h"
#include "Interpreter.h"
#include <CXX/Objects.hxx>
@@ -42,6 +43,7 @@ void SmartPtr::set(PyObject* pyob, bool owned)
void SmartPtr::release()
{
Base::PyGILStateLocker lock;
Py::_XDECREF(p);
p = nullptr;
}