Mercurial > vim
comparison src/proto/userfunc.pro @ 14927:162d79d273e6 v8.1.0475
patch 8.1.0475: memory not freed on exit when quit in autocmd
commit https://github.com/vim/vim/commit/27e80c885bcb5c5cf6a6462d71d6c81b06ba2451
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 14 21:41:01 2018 +0200
patch 8.1.0475: memory not freed on exit when quit in autocmd
Problem: Memory not freed on exit when quit in autocmd.
Solution: Remember funccal stack when executing autocmd.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Oct 2018 21:45:04 +0200 |
parents | 8037eb704e93 |
children | 16b2f2db6f28 |
comparison
equal
deleted
inserted
replaced
14926:f60f8f21f76f | 14927:162d79d273e6 |
---|---|
37 char_u *func_name(void *cookie); | 37 char_u *func_name(void *cookie); |
38 linenr_T *func_breakpoint(void *cookie); | 38 linenr_T *func_breakpoint(void *cookie); |
39 int *func_dbg_tick(void *cookie); | 39 int *func_dbg_tick(void *cookie); |
40 int func_level(void *cookie); | 40 int func_level(void *cookie); |
41 int current_func_returned(void); | 41 int current_func_returned(void); |
42 void *save_funccal(void); | 42 void save_funccal(funccal_entry_T *entry); |
43 void restore_funccal(void *vfc); | 43 void restore_funccal(void); |
44 int free_unref_funccal(int copyID, int testing); | 44 int free_unref_funccal(int copyID, int testing); |
45 hashtab_T *get_funccal_local_ht(void); | 45 hashtab_T *get_funccal_local_ht(void); |
46 dictitem_T *get_funccal_local_var(void); | 46 dictitem_T *get_funccal_local_var(void); |
47 hashtab_T *get_funccal_args_ht(void); | 47 hashtab_T *get_funccal_args_ht(void); |
48 dictitem_T *get_funccal_args_var(void); | 48 dictitem_T *get_funccal_args_var(void); |
49 void *clear_current_funccal(void); | |
50 void restore_current_funccal(void *f); | |
51 void list_func_vars(int *first); | 49 void list_func_vars(int *first); |
52 dict_T *get_current_funccal_dict(hashtab_T *ht); | 50 dict_T *get_current_funccal_dict(hashtab_T *ht); |
53 hashitem_T *find_hi_in_scoped_ht(char_u *name, hashtab_T **pht); | 51 hashitem_T *find_hi_in_scoped_ht(char_u *name, hashtab_T **pht); |
54 dictitem_T *find_var_in_scoped_ht(char_u *name, int no_autoload); | 52 dictitem_T *find_var_in_scoped_ht(char_u *name, int no_autoload); |
55 int set_ref_in_previous_funccal(int copyID); | 53 int set_ref_in_previous_funccal(int copyID); |