mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
vim-patch:8.2.3572: memory leak when closing window and using "multispace"
Problem: Memory leak when closing window and using "multispace" in
'listchars'.
Solution: Free the memory. (closes vim/vim#9071)
7a33ebfc5b
This commit is contained in:
@@ -4750,6 +4750,8 @@ static void win_free(win_T *wp, tabpage_T *tp)
|
||||
clear_winopt(&wp->w_onebuf_opt);
|
||||
clear_winopt(&wp->w_allbuf_opt);
|
||||
|
||||
xfree(wp->w_p_lcs_chars.multispace);
|
||||
|
||||
vars_clear(&wp->w_vars->dv_hashtab); // free all w: variables
|
||||
hash_init(&wp->w_vars->dv_hashtab);
|
||||
unref_var_dict(wp->w_vars);
|
||||
|
Reference in New Issue
Block a user