vim-patch:7.4.2359

Problem:    Memory leak in timer_start().
Solution:   Check the right field to be NULL.

26fe0d5691
This commit is contained in:
James McCoy
2017-04-06 08:58:18 -04:00
parent 9edbeec077
commit 071f2da66b
2 changed files with 5 additions and 5 deletions

View File

@@ -48,12 +48,12 @@ endfunc
func Test_with_partial_callback() func Test_with_partial_callback()
let g:val = 0 let g:val = 0
let s:meow = {} let meow = {'one': 1}
function s:meow.bite(...) function meow.bite(...)
let g:val += 1 let g:val += self.one
endfunction endfunction
call timer_start(50, s:meow.bite) call timer_start(50, meow.bite)
let slept = WaitFor('g:val == 1') let slept = WaitFor('g:val == 1')
call assert_equal(1, g:val) call assert_equal(1, g:val)
if has('reltime') if has('reltime')

View File

@@ -82,7 +82,7 @@ static const int included_patches[] = {
2362, 2362,
// 2361 NA // 2361 NA
// 2360, // 2360,
// 2359 NA 2359,
// 2358 NA // 2358 NA
2357, 2357,
// 2356, // 2356,