summaryrefslogtreecommitdiff
path: root/qpid/extras/dispatch/src/router_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/extras/dispatch/src/router_node.c')
-rw-r--r--qpid/extras/dispatch/src/router_node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/extras/dispatch/src/router_node.c b/qpid/extras/dispatch/src/router_node.c
index dc63a45451..806363c5ce 100644
--- a/qpid/extras/dispatch/src/router_node.c
+++ b/qpid/extras/dispatch/src/router_node.c
@@ -1132,6 +1132,7 @@ static PyTypeObject RouterAdapterType = {
static void dx_router_python_setup(dx_router_t *router)
{
+ PyObject *raType = (PyObject*) &RouterAdapterType;
PyObject *pDispatchModule = dx_python_module();
RouterAdapterType.tp_new = PyType_GenericNew;
@@ -1141,7 +1142,7 @@ static void dx_router_python_setup(dx_router_t *router)
return;
}
- Py_INCREF(&RouterAdapterType);
+ Py_INCREF(raType);
PyModule_AddObject(pDispatchModule, "RouterAdapter", (PyObject*) &RouterAdapterType);
//