0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.361

Problem:    Accessing memory after it is freed when EXITFREE is defined.
Solution:   Don't access curwin when firstwin is NULL. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar 2011-11-30 15:40:56 +01:00
parent 8000baffa7
commit 89c7122c05
2 changed files with 5 additions and 2 deletions

View File

@ -567,8 +567,9 @@ buf_freeall(buf, flags)
diff_buf_delete(buf); /* Can't use 'diff' for unloaded buffer. */ diff_buf_delete(buf); /* Can't use 'diff' for unloaded buffer. */
#endif #endif
#ifdef FEAT_SYN_HL #ifdef FEAT_SYN_HL
if (curwin->w_buffer == buf) /* Remove any ownsyntax, unless exiting. */
reset_synblock(curwin); /* remove any ownsyntax */ if (firstwin != NULL && curwin->w_buffer == buf)
reset_synblock(curwin);
#endif #endif
#ifdef FEAT_FOLDING #ifdef FEAT_FOLDING

View File

@ -714,6 +714,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 */
/**/
361,
/**/ /**/
360, 360,
/**/ /**/