Mercurial > vim
diff src/fileio.c @ 10952:835604f3c37a v8.0.0365
patch 8.0.0365: might free a dict item that wasn't allocated
commit https://github.com/vim/vim/commit/95c526e1f6d76acafee4b21f5701d6d6ac8c4b5f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 25 14:59:34 2017 +0100
patch 8.0.0365: might free a dict item that wasn't allocated
Problem: Might free a dict item that wasn't allocated.
Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for
b:changedtick.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 25 Feb 2017 15:00:05 +0100 |
parents | 5780bd3a5a7e |
children | 778c10516955 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -4924,11 +4924,11 @@ restore_backup: { unchanged(buf, TRUE); #ifdef FEAT_AUTOCMD - /* buf->b_changedtick is always incremented in unchanged() but that + /* b:changedtick is always incremented in unchanged() but that * should not trigger a TextChanged event. */ - if (last_changedtick + 1 == *buf->b_changedtick + if (last_changedtick + 1 == CHANGEDTICK(buf) && last_changedtick_buf == buf) - last_changedtick = *buf->b_changedtick; + last_changedtick = CHANGEDTICK(buf); #endif u_unchanged(buf); u_update_save_nr(buf);