Commit 7d6cc5b3 authored by Michael W. Hudson's avatar Michael W. Hudson

Fix a leak of a reference on None.

parent 574a2512
...@@ -2284,9 +2284,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args) ...@@ -2284,9 +2284,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL; if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
PyCursesCheckERR(typeahead( fd ), "typeahead"); return PyCursesCheckERR(typeahead( fd ), "typeahead");
Py_INCREF(Py_None);
return Py_None;
} }
static PyObject * static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment