Mercurial > vim
comparison src/proto/window.pro @ 28429:aa9720c76412 v8.2.4739
patch 8.2.4739: accessing freed memory after WinScrolled autocmd event
Commit: https://github.com/vim/vim/commit/d58862d18f091d3c14fa3647e724ef7eea1ecefa
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Apr 12 11:32:48 2022 +0100
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 https://github.com/vim/vim/issues/10156)
Remove the argument from may_trigger_winscrolled().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 12 Apr 2022 12:45:04 +0200 |
parents | e466fdbe0699 |
children | 87da4bab5aaa |
comparison
equal
deleted
inserted
replaced
28428:eb08141a60cb | 28429:aa9720c76412 |
---|---|
15 void entering_window(win_T *win); | 15 void entering_window(win_T *win); |
16 void curwin_init(void); | 16 void curwin_init(void); |
17 void close_windows(buf_T *buf, int keep_curwin); | 17 void close_windows(buf_T *buf, int keep_curwin); |
18 int one_window(void); | 18 int one_window(void); |
19 int win_close(win_T *win, int free_buf); | 19 int win_close(win_T *win, int free_buf); |
20 void may_trigger_winscrolled(win_T *wp); | 20 void may_trigger_winscrolled(void); |
21 void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp); | 21 void win_close_othertab(win_T *win, int free_buf, tabpage_T *tp); |
22 void win_free_all(void); | 22 void win_free_all(void); |
23 win_T *winframe_remove(win_T *win, int *dirp, tabpage_T *tp); | 23 win_T *winframe_remove(win_T *win, int *dirp, tabpage_T *tp); |
24 void close_others(int message, int forceit); | 24 void close_others(int message, int forceit); |
25 int win_alloc_first(void); | 25 int win_alloc_first(void); |