0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

Fixed memory leak in ":ownsyntax".

This commit is contained in:
Bram Moolenaar
2010-06-06 15:21:10 +02:00
parent 56be950094
commit 1950c3529b
4 changed files with 27 additions and 26 deletions

View File

@@ -4410,7 +4410,10 @@ win_free(wp, tp)
#ifdef FEAT_SYN_HL
/* free independent synblock */
if (wp->w_s != &wp->w_buffer->b_s)
{
syntax_clear(wp->w_s);
vim_free(wp->w_s);
}
#endif
#ifdef FEAT_AUTOCMD