mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
vim-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.
4f1982800f
This commit is contained in:
@@ -149,7 +149,7 @@ void redraw_later(int type)
|
||||
|
||||
void 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)
|
||||
wp->w_lines_valid = 0;
|
||||
|
Reference in New Issue
Block a user