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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user