mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
patch 7.4.2139
Problem: :delfunction causes illegal memory access. Solution: Correct logic when deciding to free a function.
This commit is contained in:
@@ -267,7 +267,6 @@ func Test_closure_refcount()
|
||||
call assert_equal(2, g:Count())
|
||||
call assert_equal(3, g:Count2())
|
||||
|
||||
" This causes memory access errors.
|
||||
" delfunc LambdaFoo
|
||||
" delfunc LambdaBar
|
||||
delfunc LambdaFoo
|
||||
delfunc LambdaBar
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user