Mercurial > vim
comparison src/window.c @ 26077:ad90d7eee236 v8.2.3572
patch 8.2.3572: memory leak when closing window and using "multispace"
Commit: https://github.com/vim/vim/commit/7a33ebfc5b04353aa7674972087d581def8fdcc1
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Nov 2 20:56:07 2021 +0000
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 02 Nov 2021 22:00:06 +0100 |
parents | 0082503ff2ff |
children | d4d9c7c55a5f |
comparison
equal
deleted
inserted
replaced
26076:e182217c9805 | 26077:ad90d7eee236 |
---|---|
5039 #endif | 5039 #endif |
5040 | 5040 |
5041 clear_winopt(&wp->w_onebuf_opt); | 5041 clear_winopt(&wp->w_onebuf_opt); |
5042 clear_winopt(&wp->w_allbuf_opt); | 5042 clear_winopt(&wp->w_allbuf_opt); |
5043 | 5043 |
5044 vim_free(wp->w_lcs_chars.multispace); | |
5045 | |
5044 #ifdef FEAT_EVAL | 5046 #ifdef FEAT_EVAL |
5045 vars_clear(&wp->w_vars->dv_hashtab); // free all w: variables | 5047 vars_clear(&wp->w_vars->dv_hashtab); // free all w: variables |
5046 hash_init(&wp->w_vars->dv_hashtab); | 5048 hash_init(&wp->w_vars->dv_hashtab); |
5047 unref_var_dict(wp->w_vars); | 5049 unref_var_dict(wp->w_vars); |
5048 #endif | 5050 #endif |