Problem: Accessing freed memory when EXITFREE is set and there is more than
one tab and window. (Dominique Pelle)
Solution: Free options later. Skip redraw when exiting.
free_all_autocmds();
# endif
clear_termcodes();
- free_all_options();
free_all_marks();
alist_clear(&global_alist);
free_homedir();
/* Destroy all windows. Must come before freeing buffers. */
win_free_all();
+ /* Free all option values. Must come after closing windows. */
+ free_all_options();
+
/* Free all buffers. Reset 'autochdir' to avoid accessing things that
* were freed already. */
#ifdef FEAT_AUTOCHDIR
win_T *wp,
int type)
{
- if (wp->w_redr_type < type)
+ if (!exiting && wp->w_redr_type < type)
{
wp->w_redr_type = type;
if (type >= NOT_VALID)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1214,
/**/
1213,
/**/