diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-02 20:39:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 20:39:24 +0800 |
commit | 1145a9b2485a4e5072cffe28a958da983cd59e84 (patch) | |
tree | 13059f09a9825a7eae3d75c8556436845dc1e492 /src/nvim/window.c | |
parent | 805c83f43e3d6832a54bc4a1de1dd4d4da43d58e (diff) | |
download | rneovim-1145a9b2485a4e5072cffe28a958da983cd59e84.tar.gz rneovim-1145a9b2485a4e5072cffe28a958da983cd59e84.tar.bz2 rneovim-1145a9b2485a4e5072cffe28a958da983cd59e84.zip |
feat(aucmd_win): allow crazy things with hidden buffers (#21250)
Problem: Crash when doing crazy things with hidden buffers.
Solution: Dynamically allocate the list of autocommand windows.
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 79a90ab8af..1f80f14f26 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -3122,6 +3122,8 @@ void win_free_all(void) } } + kv_destroy(aucmd_win_vec); + while (firstwin != NULL) { int dummy; (void)win_free_mem(firstwin, &dummy, NULL); |