diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-05-15 19:07:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-05-15 19:07:47 +0200 |
commit | 2cd7362e309aa6993ef355a7860fad549f30d239 (patch) | |
tree | 339740566283c53a6c9af0022e21ff098c9dc59d | |
parent | 3dab2806feefef69a6b614b9d98463bf4d9aa955 (diff) | |
download | vim-git-2cd7362e309aa6993ef355a7860fad549f30d239.tar.gz |
updated for version 7.3.958v7.3.958
Problem: Python: Iteration destructor not set.
Solution: Put IterDestructor to use. (ZyX)
-rw-r--r-- | src/if_py_both.h | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 2fef1e426..4bd5bae7d 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -566,7 +566,6 @@ IterNew(void *start, destructorfun destruct, nextfun next) return (PyObject *)(self); } -#if 0 /* unused */ static void IterDestructor(PyObject *self) { @@ -576,7 +575,6 @@ IterDestructor(PyObject *self) DESTRUCTOR_FINISH(self); } -#endif static PyObject * IterNext(PyObject *self) @@ -3823,6 +3821,7 @@ init_structs(void) IterType.tp_doc = "generic iterator object"; IterType.tp_iter = IterIter; IterType.tp_iternext = IterNext; + IterType.tp_dealloc = IterDestructor; vim_memset(&BufferType, 0, sizeof(BufferType)); BufferType.tp_name = "vim.buffer"; diff --git a/src/version.c b/src/version.c index 10d9335f6..aee5207dd 100644 --- 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 */ /**/ + 958, +/**/ 957, /**/ 956, |