From d58862d18f091d3c14fa3647e724ef7eea1ecefa Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 12 Apr 2022 11:32:48 +0100 Subject: 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(). --- src/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui.c') diff --git a/src/gui.c b/src/gui.c index 23694d1956..f2f541e79f 100644 --- a/src/gui.c +++ b/src/gui.c @@ -5238,7 +5238,7 @@ gui_update_screen(void) } if (!finish_op) - may_trigger_winscrolled(curwin); + may_trigger_winscrolled(); # ifdef FEAT_CONCEAL if (conceal_update_lines -- cgit v1.2.3