diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-04-15 18:25:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-04-15 18:25:59 +0200 |
commit | 3bb28557e192b9433dc286f89300f2557b46e821 (patch) | |
tree | 98924f57ea25403969303b9f2482a6618b56f240 /src | |
parent | a8565fecc62e95a3a284be2ae20129cebe6432be (diff) | |
download | vim-git-3bb28557e192b9433dc286f89300f2557b46e821.tar.gz |
updated for version 7.3.904v7.3.904
Problem: Using memory freed by the garbage collector.
Solution: Mark items in aucmd_win as used.
Diffstat (limited to 'src')
-rw-r--r-- | src/eval.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 866b40cf6..4bfc0419e 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6792,6 +6792,10 @@ garbage_collect() /* window-local variables */ FOR_ALL_TAB_WINDOWS(tp, wp) set_ref_in_item(&wp->w_winvar.di_tv, copyID); +#ifdef FEAT_AUTOCMD + if (aucmd_win != NULL) + set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID); +#endif #ifdef FEAT_WINDOWS /* tabpage-local variables */ diff --git a/src/version.c b/src/version.c index cf06da600..0e84a049e 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 904, +/**/ 903, /**/ 902, |