0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.3.904

Problem:    Using memory freed by the garbage collector.
Solution:   Mark items in aucmd_win as used.
This commit is contained in:
Bram Moolenaar
2013-04-15 18:25:59 +02:00
parent a8565fecc6
commit 3bb28557e1
2 changed files with 6 additions and 0 deletions

View File

@@ -6792,6 +6792,10 @@ garbage_collect()
/* window-local variables */ /* window-local variables */
FOR_ALL_TAB_WINDOWS(tp, wp) FOR_ALL_TAB_WINDOWS(tp, wp)
set_ref_in_item(&wp->w_winvar.di_tv, copyID); 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 #ifdef FEAT_WINDOWS
/* tabpage-local variables */ /* tabpage-local variables */

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
904,
/**/ /**/
903, 903,
/**/ /**/