Mercurial > vim
diff src/eval.c @ 4309:bdab73bf24a8 v7.3.904
updated for version 7.3.904
Problem: Using memory freed by the garbage collector.
Solution: Mark items in aucmd_win as used.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 15 Apr 2013 18:25:59 +0200 |
parents | aca1886102bd |
children | f1eab4f77a6f |
line wrap: on
line diff
--- 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 */