diff src/if_py_both.h @ 4609:12421d8a45d5 v7.3.1052

updated for version 7.3.1052 Problem: Python: possible SEGV and negative refcount. Solution: Python patch 13: Fix IterIter function. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Wed, 29 May 2013 22:52:32 +0200
parents 70600448f9e7
children 49f0fcd9762c
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -814,6 +814,7 @@ IterNext(IterObject *self)
     static PyObject *
 IterIter(PyObject *self)
 {
+    Py_INCREF(self);
     return self;
 }