diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-06-06 15:21:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-06-06 15:21:10 +0200 |
commit | 1950c3529b16acd21ee5770b422d633f24d192a3 (patch) | |
tree | 0710904eec725a784f02093d972dde0fe6c41329 /src/window.c | |
parent | 56be950094e10e68da1f901ba971c5f3e9821685 (diff) | |
download | vim-git-1950c3529b16acd21ee5770b422d633f24d192a3.tar.gz |
Fixed memory leak in ":ownsyntax".
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index d6aae7c0f..e878d9fab 100644 --- a/src/window.c +++ b/src/window.c @@ -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 |