Skip to content

Commit

Permalink
fixup zero out pyrouter methods so it won't be called
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jan 22, 2022
1 parent 7bb53e8 commit 8ed9b4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/router_pynode.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ qd_error_t qd_router_python_setup(qd_router_t *router)
void qd_router_python_free(qd_router_t *router) {
qd_python_lock_state_t ls = qd_python_lock();
Py_XDECREF(pyRouter);
Py_XDECREF(pyTick);
Py_XDECREF(pySetMobileSeq);
Py_XDECREF(pySetMyMobileSeq);
Py_XDECREF(pyLinkLost);
Py_CLEAR(pyTick);
Py_CLEAR(pySetMobileSeq);
Py_CLEAR(pySetMyMobileSeq);
Py_CLEAR(pyLinkLost);
PyGC_Collect();
qd_python_unlock(ls);
}
Expand Down

0 comments on commit 8ed9b4b

Please sign in to comment.