diff options
Diffstat (limited to 'py/modules/IcePy/ObjectAdapter.cpp')
-rw-r--r-- | py/modules/IcePy/ObjectAdapter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/ObjectAdapter.cpp b/py/modules/IcePy/ObjectAdapter.cpp index d8b6d12e341..37fb4e2b7e8 100644 --- a/py/modules/IcePy/ObjectAdapter.cpp +++ b/py/modules/IcePy/ObjectAdapter.cpp @@ -123,6 +123,8 @@ IcePy::ServantWrapper::ServantWrapper(PyObject* servant) : IcePy::ServantWrapper::~ServantWrapper() { + AdoptThread adoptThread; // Ensure the current thread is able to call into Python. + Py_DECREF(_servant); } |