comparison src/proto/eval.pro @ 26518:13ba00ef7687 v8.2.3788

patch 8.2.3788: lambda for option that is a function may be freed Commit: https://github.com/vim/vim/commit/6ae8fae8696623b527c7fb22567f6a3705b2f0dd Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Dec 12 16:26:44 2021 +0000 patch 8.2.3788: lambda for option that is a function may be freed Problem: Lambda for option that is a function may be garbage collected. Solution: Set a reference in the funcref. (Yegappan Lakshmanan, closes #9330)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Dec 2021 17:30:04 +0100
parents 65ab0b035dd8
children 8796f1384750
comparison
equal deleted inserted replaced
26517:7dfc4c45f698 26518:13ba00ef7687
50 int garbage_collect(int testing); 50 int garbage_collect(int testing);
51 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack); 51 int set_ref_in_ht(hashtab_T *ht, int copyID, list_stack_T **list_stack);
52 int set_ref_in_dict(dict_T *d, int copyID); 52 int set_ref_in_dict(dict_T *d, int copyID);
53 int set_ref_in_list(list_T *ll, int copyID); 53 int set_ref_in_list(list_T *ll, int copyID);
54 int set_ref_in_list_items(list_T *l, int copyID, ht_stack_T **ht_stack); 54 int set_ref_in_list_items(list_T *l, int copyID, ht_stack_T **ht_stack);
55 int set_ref_in_callback(callback_T *cb, int copyID);
55 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack); 56 int set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack, list_stack_T **list_stack);
56 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int composite_val); 57 char_u *echo_string_core(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID, int echo_style, int restore_copyID, int composite_val);
57 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID); 58 char_u *echo_string(typval_T *tv, char_u **tofree, char_u *numbuf, int copyID);
58 int buf_byteidx_to_charidx(buf_T *buf, int lnum, int byteidx); 59 int buf_byteidx_to_charidx(buf_T *buf, int lnum, int byteidx);
59 int buf_charidx_to_byteidx(buf_T *buf, int lnum, int charidx); 60 int buf_charidx_to_byteidx(buf_T *buf, int lnum, int charidx);