Mercurial > vim
comparison src/structs.h @ 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 | e71d3bdf3bc3 |
comparison
equal
deleted
inserted
replaced
10951:32704a1de17c | 10952:835604f3c37a |
---|---|
1914 /* key used for buf_hashtab, holds b_fnum as | 1914 /* key used for buf_hashtab, holds b_fnum as |
1915 hex string */ | 1915 hex string */ |
1916 | 1916 |
1917 int b_changed; /* 'modified': Set to TRUE if something in the | 1917 int b_changed; /* 'modified': Set to TRUE if something in the |
1918 file has been changed and not written out. */ | 1918 file has been changed and not written out. */ |
1919 varnumber_T *b_changedtick; /* points into b:changedtick or b_ct_val; | 1919 dictitem16_T b_ct_di; /* holds the b:changedtick value in |
1920 b_ct_di.di_tv.vval.v_number; | |
1920 incremented for each change, also for undo */ | 1921 incremented for each change, also for undo */ |
1921 varnumber_T b_ct_val; /* fallback for b:changedtick */ | 1922 #define CHANGEDTICK(buf) ((buf)->b_ct_di.di_tv.vval.v_number) |
1922 | 1923 |
1923 int b_saving; /* Set to TRUE if we are in the middle of | 1924 int b_saving; /* Set to TRUE if we are in the middle of |
1924 saving the buffer. */ | 1925 saving the buffer. */ |
1925 | 1926 |
1926 /* | 1927 /* |