From: Bram Moolenaar Date: Mon, 15 Apr 2013 16:25:59 +0000 (+0200) Subject: updated for version 7.3.904 X-Git-Tag: v7.3.904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bb28557e192b9433dc286f89300f2557b46e821;p=thirdparty%2Fvim.git updated for version 7.3.904 Problem: Using memory freed by the garbage collector. Solution: Mark items in aucmd_win as used. --- diff --git a/src/eval.c b/src/eval.c index 866b40cf6e..4bfc0419ed 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 cf06da6008..0e84a049e2 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 904, /**/ 903, /**/