|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.111
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.111
|
|
|
22c937 |
Problem: Memory leak in Python OptionsAssItem. (Ken Takata)
|
|
|
22c937 |
Solution: Call Py_XDECREF() where needed. (ZyX)
|
|
|
22c937 |
Files: src/if_py_both.h
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.110/src/if_py_both.h 2013-11-28 17:04:38.000000000 +0100
|
|
|
22c937 |
--- src/if_py_both.h 2013-12-07 14:23:00.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 3005,3015 ****
|
|
|
22c937 |
else
|
|
|
22c937 |
{
|
|
|
22c937 |
char_u *val;
|
|
|
22c937 |
! PyObject *todecref;
|
|
|
22c937 |
|
|
|
22c937 |
! if ((val = StringToChars(valObject, &todecref)))
|
|
|
22c937 |
ret = set_option_value_for(key, 0, val, opt_flags,
|
|
|
22c937 |
self->opt_type, self->from);
|
|
|
22c937 |
else
|
|
|
22c937 |
ret = -1;
|
|
|
22c937 |
}
|
|
|
22c937 |
--- 3005,3018 ----
|
|
|
22c937 |
else
|
|
|
22c937 |
{
|
|
|
22c937 |
char_u *val;
|
|
|
22c937 |
! PyObject *todecref2;
|
|
|
22c937 |
|
|
|
22c937 |
! if ((val = StringToChars(valObject, &todecref2)))
|
|
|
22c937 |
! {
|
|
|
22c937 |
ret = set_option_value_for(key, 0, val, opt_flags,
|
|
|
22c937 |
self->opt_type, self->from);
|
|
|
22c937 |
+ Py_XDECREF(todecref2);
|
|
|
22c937 |
+ }
|
|
|
22c937 |
else
|
|
|
22c937 |
ret = -1;
|
|
|
22c937 |
}
|
|
|
22c937 |
*** ../vim-7.4.110/src/version.c 2013-11-28 19:27:18.000000000 +0100
|
|
|
22c937 |
--- src/version.c 2013-12-07 14:24:16.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 111,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
How To Keep A Healthy Level Of Insanity:
|
|
|
22c937 |
12. Sing along at the opera.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|