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