diff options
Diffstat (limited to 'python/modules/IcePy/Endpoint.cpp')
-rw-r--r-- | python/modules/IcePy/Endpoint.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/modules/IcePy/Endpoint.cpp b/python/modules/IcePy/Endpoint.cpp index 0ee59b6c757..907aa7b12e1 100644 --- a/python/modules/IcePy/Endpoint.cpp +++ b/python/modules/IcePy/Endpoint.cpp @@ -99,9 +99,7 @@ endpointCompare(EndpointObject* p1, PyObject* other, int op) } } - PyObject* r = result ? getTrue() : getFalse(); - Py_INCREF(r); - return r; + return result ? incTrue() : incFalse(); } #ifdef WIN32 |