diff options
-rw-r--r-- | giscanner/giscannermodule.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index de65d6f3..aea9d907 100644 --- a/giscanner/giscannermodule.c +++ b/giscanner/giscannermodule.c @@ -299,7 +299,6 @@ type_get_child_list (PyGISourceType *self, { PyObject *item = pygi_source_symbol_new (l->data); PyList_SetItem (list, i++, item); - Py_INCREF (item); } Py_INCREF (list); @@ -512,7 +511,6 @@ pygi_source_scanner_get_symbols (PyGISourceScanner *self) { PyObject *item = pygi_source_symbol_new (l->data); PyList_SetItem (list, i++, item); - Py_INCREF (item); } Py_INCREF (list); @@ -535,8 +533,7 @@ pygi_source_scanner_get_comments (PyGISourceScanner *self) PyObject *item = Py_BuildValue ("(ssi)", comment->comment, comment->filename, comment->line); - PyList_SET_ITEM (list, i++, item); - Py_INCREF (item); + PyList_SetItem (list, i++, item); } Py_INCREF (list); |