mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
vim-patch:8.0.0331
Problem: Restoring help snapshot accesses freed memory. (Dominique Pelle)
Solution: Don't restore a snapshot when the window closes.
343b8c0429
This commit is contained in:
@@ -5365,10 +5365,8 @@ restore_snapshot (
|
||||
clear_snapshot(curtab, idx);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if frames "sn" and "fr" have the same layout, same following frames
|
||||
* and same children.
|
||||
*/
|
||||
/// Check if frames "sn" and "fr" have the same layout, same following frames
|
||||
/// and same children. And the window pointer is valid.
|
||||
static int check_snapshot_rec(frame_T *sn, frame_T *fr)
|
||||
{
|
||||
if (sn->fr_layout != fr->fr_layout
|
||||
|
Reference in New Issue
Block a user