changeset 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 a1d3d9db4340
children 42d4b7fe71f1
files src/if_py_both.h src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
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;
 }
 
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1052,
+/**/
     1051,
 /**/
     1050,