Fix a leak of a reference on None.

This commit is contained in:
Michael W. Hudson 2004-08-04 14:33:28 +00:00
parent 574a25127a
commit 7d6cc5b303

View File

@ -2284,9 +2284,7 @@ PyCurses_TypeAhead(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args,"i;fd",&fd)) return NULL;
PyCursesCheckERR(typeahead( fd ), "typeahead");
Py_INCREF(Py_None);
return Py_None;
return PyCursesCheckERR(typeahead( fd ), "typeahead");
}
static PyObject *