python module: query_iter function must incref the query (problem surfaced because the query ref count is now correct following the previous incref fix

This commit is contained in:
Jean-Francois Dockes 2014-07-16 14:29:18 +02:00
parent b6eb3589ba
commit 8c239bef6f

View File

@ -861,6 +861,7 @@ Query_init(recoll_QueryObject *self, PyObject *, PyObject *)
static PyObject * static PyObject *
Query_iter(PyObject *self) Query_iter(PyObject *self)
{ {
Py_INCREF(self);
return self; return self;
} }