diff src/screen.c @ 12672:4e846c9d61a8 v8.0.1214

patch 8.0.1214: accessing freed memory when EXITFREE is set commit https://github.com/vim/vim/commit/4f1982800f0aff28df6875e718a786f6c4b11ad9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 23 21:53:30 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Mon, 23 Oct 2017 22:00:05 +0200
parents 97f0c74976c6
children 306a7a357c71
line wrap: on
line diff
--- 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)