]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.904 v7.3.904
authorBram Moolenaar <Bram@vim.org>
Mon, 15 Apr 2013 16:25:59 +0000 (18:25 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 15 Apr 2013 16:25:59 +0000 (18:25 +0200)
Problem:    Using memory freed by the garbage collector.
Solution:   Mark items in aucmd_win as used.

src/eval.c
src/version.c

index 866b40cf6ea73dd4cbaf17e0d2dc0170d49885fa..4bfc0419ed96dabd5ff5c957a0539346b1339f9d 100644 (file)
@@ -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 */
index cf06da600821a8729f0a8f7eb0ef6e162adc757b..0e84a049e291cf763b35a9d25f34430ac6424ade 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    904,
 /**/
     903,
 /**/