summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/Communicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'py/modules/IcePy/Communicator.cpp')
-rw-r--r--py/modules/IcePy/Communicator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/modules/IcePy/Communicator.cpp b/py/modules/IcePy/Communicator.cpp
index 1f8c86704e7..7fc4ae7c04c 100644
--- a/py/modules/IcePy/Communicator.cpp
+++ b/py/modules/IcePy/Communicator.cpp
@@ -528,6 +528,7 @@ communicatorSetWrapper(CommunicatorObject* self, PyObject* args)
assert(self->wrapper == NULL);
self->wrapper = wrapper;
+ Py_INCREF(self->wrapper);
Py_INCREF(Py_None);
return Py_None;