mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00: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:
@@ -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')
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user