diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-14 21:41:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-14 21:41:01 +0200 |
commit | 27e80c885bcb5c5cf6a6462d71d6c81b06ba2451 (patch) | |
tree | 5f23ab7eeb2ddc833a739d7c0ac62c0dd3a2e863 /src/proto/userfunc.pro | |
parent | a16bc5450359294f9d8585da9f74e5082108b7fb (diff) | |
download | vim-git-27e80c885bcb5c5cf6a6462d71d6c81b06ba2451.tar.gz |
patch 8.1.0475: memory not freed on exit when quit in autocmdv8.1.0475
Problem: Memory not freed on exit when quit in autocmd.
Solution: Remember funccal stack when executing autocmd.
Diffstat (limited to 'src/proto/userfunc.pro')
-rw-r--r-- | src/proto/userfunc.pro | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro index 3149ec50a..ac9bdc006 100644 --- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -39,15 +39,13 @@ linenr_T *func_breakpoint(void *cookie); int *func_dbg_tick(void *cookie); int func_level(void *cookie); int current_func_returned(void); -void *save_funccal(void); -void restore_funccal(void *vfc); +void save_funccal(funccal_entry_T *entry); +void restore_funccal(void); int free_unref_funccal(int copyID, int testing); hashtab_T *get_funccal_local_ht(void); dictitem_T *get_funccal_local_var(void); hashtab_T *get_funccal_args_ht(void); dictitem_T *get_funccal_args_var(void); -void *clear_current_funccal(void); -void restore_current_funccal(void *f); void list_func_vars(int *first); dict_T *get_current_funccal_dict(hashtab_T *ht); hashitem_T *find_hi_in_scoped_ht(char_u *name, hashtab_T **pht); |