mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
9edbeec077
commit
071f2da66b
@ -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')
|
||||
|
@ -82,7 +82,7 @@ static const int included_patches[] = {
|
||||
2362,
|
||||
// 2361 NA
|
||||
// 2360,
|
||||
// 2359 NA
|
||||
2359,
|
||||
// 2358 NA
|
||||
2357,
|
||||
// 2356,
|
||||
|
Loading…
Reference in New Issue
Block a user