1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2022-11-28 20:34:52 +00:00
parent f86490ed4f
commit 84497cd06f
7 changed files with 21 additions and 20 deletions

View File

@@ -984,8 +984,9 @@ EXTERN win_T *curwin; // currently active window
#define 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.
int auc_win_used; // This auc_win is being used.
} aucmdwin_T;
EXTERN aucmdwin_T aucmd_win[AUCMD_WIN_COUNT];