--- a/src/python/recoll/pyrecoll.cpp
+++ b/src/python/recoll/pyrecoll.cpp
@@ -861,6 +861,7 @@
 static PyObject *
 Query_iter(PyObject *self)
 {
+    Py_INCREF(self);
     return self;
 }