From 7805c481b5816922df09fa1ec6e00e3e6e5e84bf Mon Sep 17 00:00:00 2001 From: Pieter Hijma Date: Thu, 4 Jul 2024 01:11:08 +0200 Subject: [PATCH] Core: Add a missing interpeter lock --- src/Base/SmartPtrPy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Base/SmartPtrPy.cpp b/src/Base/SmartPtrPy.cpp index 5041d230e9..cd9757c929 100644 --- a/src/Base/SmartPtrPy.cpp +++ b/src/Base/SmartPtrPy.cpp @@ -26,6 +26,7 @@ #endif #include "SmartPtrPy.h" +#include "Interpreter.h" #include @@ -42,6 +43,7 @@ void SmartPtr::set(PyObject* pyob, bool owned) void SmartPtr::release() { + Base::PyGILStateLocker lock; Py::_XDECREF(p); p = nullptr; }