mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
vim-patch:9.0.0967: leaking memory from autocmd windows
Problem: Leaking memory from autocmd windows.
Solution: Free window when auc_win is not NULL.
84497cd06f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -429,8 +429,9 @@ EXTERN win_T *curwin; // currently active window
|
||||
enum { AUCMD_WIN_COUNT = 5, };
|
||||
|
||||
typedef struct {
|
||||
win_T *auc_win; ///< window used in aucmd_prepbuf()
|
||||
int auc_win_used; ///< this auc_win is being used
|
||||
win_T *auc_win; ///< Window used in aucmd_prepbuf(). When not NULL the
|
||||
///< window has been allocated.
|
||||
bool auc_win_used; ///< This auc_win is being used.
|
||||
} aucmdwin_T;
|
||||
|
||||
EXTERN aucmdwin_T aucmd_win[AUCMD_WIN_COUNT];
|
||||
|
Reference in New Issue
Block a user