No need to mess with method reference counts.
authorBert Vermeulen <bert@biot.com>
Fri, 13 Dec 2013 10:29:59 +0000 (11:29 +0100)
committerBert Vermeulen <bert@biot.com>
Fri, 13 Dec 2013 10:29:59 +0000 (11:29 +0100)
type_decoder.c

index 6140fd0b21e63112b54259fcb56a6bf3dc618b4e..6810d919043bc61337aa0f6b936fa4eefdc34d90 100644 (file)
@@ -252,8 +252,6 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args)
        case SRD_OUTPUT_PYTHON:
                for (l = di->next_di; l; l = l->next) {
                        next_di = l->data;
-                       /* TODO: Is this needed? */
-                       Py_XINCREF(next_di->py_inst);
                        srd_spew("Sending %d-%d to instance %s",
                                 start_sample, end_sample,
                                 next_di->inst_id);