patch 8.2.1770: invalid memory use when using SpellFileMissing autocmd

Problem:    Invalid memory use when using SpellFileMissing autocmd.
Solution:   Add test case. (Dominique Pellé, closes #7036)  Fix using a window
            that was closed.
This commit is contained in:
Bram Moolenaar
2020-09-28 23:13:15 +02:00
parent 4934ad0e44
commit d569a9e746
3 changed files with 26 additions and 1 deletions

View File

@ -2280,11 +2280,11 @@ did_set_spelllang(win_T *wp)
}
}
}
redraw_win_later(wp, NOT_VALID);
theend:
vim_free(spl_copy);
recursive = FALSE;
redraw_win_later(wp, NOT_VALID);
return ret_msg;
}