mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #9071)
This commit is contained in:
@@ -5041,6 +5041,8 @@ win_free(
|
||||
clear_winopt(&wp->w_onebuf_opt);
|
||||
clear_winopt(&wp->w_allbuf_opt);
|
||||
|
||||
vim_free(wp->w_lcs_chars.multispace);
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
vars_clear(&wp->w_vars->dv_hashtab); // free all w: variables
|
||||
hash_init(&wp->w_vars->dv_hashtab);
|
||||
|
Reference in New Issue
Block a user