Core: Add a missing interpeter lock
This commit is contained in:
committed by
Chris Hennes
parent
0e08c99092
commit
d7e5073ffa
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user