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

patch 8.0.1214: accessing freed memory when EXITFREE is set

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.
This commit is contained in:
Bram Moolenaar
2017-10-23 21:53:30 +02:00
parent 2e4cb3b042
commit 4f1982800f
3 changed files with 6 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ redraw_win_later(
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)