diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-25 14:59:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-25 14:59:34 +0100 |
commit | 95c526e1f6d76acafee4b21f5701d6d6ac8c4b5f (patch) | |
tree | bd5c3b788fbd7995938325c97c3ff4c2d72b9b94 /src/syntax.c | |
parent | d3f78dc9ebd729475a7f24a50a91112e300d5ac9 (diff) |
patch 8.0.0365: might free a dict item that wasn't allocatedv8.0.0365
Problem: Might free a dict item that wasn't allocated.
Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for
b:changedtick.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 6b9019020a..0d9cd2cedc 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -516,13 +516,13 @@ syntax_start(win_T *wp, linenr_T lnum) */ if (syn_block != wp->w_s || syn_buf != wp->w_buffer - || changedtick != *syn_buf->b_changedtick) + || changedtick != CHANGEDTICK(syn_buf)) { invalidate_current_state(); syn_buf = wp->w_buffer; syn_block = wp->w_s; } - changedtick = *syn_buf->b_changedtick; + changedtick = CHANGEDTICK(syn_buf); syn_win = wp; /* |