mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.2143
Problem: A funccal is garbage collected while it can still be used. Solution: Set copyID in all referenced functions. Do not list lambda functions with ":function".
This commit is contained in:
@@ -5304,6 +5304,9 @@ garbage_collect(int testing)
|
||||
/* function-local variables */
|
||||
abort = abort || set_ref_in_call_stack(copyID);
|
||||
|
||||
/* named functions (matters for closures) */
|
||||
abort = abort || set_ref_in_functions(copyID);
|
||||
|
||||
/* function call arguments, if v:testing is set. */
|
||||
abort = abort || set_ref_in_func_args(copyID);
|
||||
|
||||
|
Reference in New Issue
Block a user