aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-11-17 07:07:15 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-11-17 07:11:46 +0800
commit8dbe47a4bc823e05afed8048e548a5ff9cc1819f (patch)
tree35bc67f1a348f77bf22023e32113f4ed9770ab2d /src/nvim/window.c
parent5ed2a5cf9cf6a5f90e2b5bf3ef26ffea02f923f1 (diff)
downloadrneovim-8dbe47a4bc823e05afed8048e548a5ff9cc1819f.tar.gz
rneovim-8dbe47a4bc823e05afed8048e548a5ff9cc1819f.tar.bz2
rneovim-8dbe47a4bc823e05afed8048e548a5ff9cc1819f.zip
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) https://github.com/vim/vim/commit/7a33ebfc5b04353aa7674972087d581def8fdcc1
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 59079584ca..26f483c842 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -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);