0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4739: accessing freed memory after WinScrolled autocmd event

Problem:    Accessing freed memory after WinScrolled autocmd event.
Solution:   Check the window pointer is still valid. (closes #10156)
            Remove the argument from may_trigger_winscrolled().
This commit is contained in:
zeertzjq
2022-04-12 11:32:48 +01:00
committed by Bram Moolenaar
parent 11a57dfd16
commit d58862d18f
7 changed files with 54 additions and 20 deletions

View File

@@ -1342,7 +1342,7 @@ main_loop(
validate_cursor();
if (!finish_op)
may_trigger_winscrolled(curwin);
may_trigger_winscrolled();
// If nothing is pending and we are going to wait for the user to
// type a character, trigger SafeState.