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/memline.c | |
parent | d3f78dc9ebd729475a7f24a50a91112e300d5ac9 (diff) | |
download | vim-git-95c526e1f6d76acafee4b21f5701d6d6ac8c4b5f.tar.gz |
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/memline.c')
-rw-r--r-- | src/memline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c index df799b1b2..01e8d5ba3 100644 --- a/src/memline.c +++ b/src/memline.c @@ -1649,7 +1649,7 @@ ml_recover(void) if (!(curbuf->b_ml.ml_line_count == 2 && *ml_get(1) == NUL)) { changed_int(); - ++*curbuf->b_changedtick; + ++CHANGEDTICK(curbuf); } } else @@ -1663,7 +1663,7 @@ ml_recover(void) if (i != 0) { changed_int(); - ++*curbuf->b_changedtick; + ++CHANGEDTICK(curbuf); break; } } |