diff options
-rw-r--r-- | type_decoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/type_decoder.c b/type_decoder.c index 9481bdb..7836640 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -542,6 +542,7 @@ static int set_new_condition_list(PyObject *self, PyObject *args) return 9999; /* The PD invoked self.wait({}). */ /* Make a list and put the dict in there for convenience. */ py_conditionlist = PyList_New(1); + Py_IncRef(py_conds); PyList_SetItem(py_conditionlist, 0, py_conds); num_conditions = 1; } else { |