0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -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

@@ -1528,7 +1528,7 @@ ins_redraw(int ready) // not busy with something
}
if (ready)
may_trigger_winscrolled(curwin);
may_trigger_winscrolled();
// Trigger SafeState if nothing is pending.
may_trigger_safestate(ready