diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-23 21:53:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-23 21:53:30 +0200 |
commit | 4f1982800f0aff28df6875e718a786f6c4b11ad9 (patch) | |
tree | 0cda1a53ffa28cd3bb662507ebff7ee1a1221def /src/screen.c | |
parent | 2e4cb3b042faba5efc9b5a8b4f86942a417494ce (diff) | |
download | vim-git-4f1982800f0aff28df6875e718a786f6c4b11ad9.tar.gz |
patch 8.0.1214: accessing freed memory when EXITFREE is setv8.0.1214
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.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c index 3e08b600f..c92b17ebb 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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) |