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
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
2 changed files with 5 additions and 5 deletions

View File

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

View File

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