diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-15 18:27:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-15 18:27:08 +0200 |
commit | 02f9e6a60f9851046154ccf2ac170f25a0b3cc7d (patch) | |
tree | 593583704cf9c3f0a19a4aeecd61efea1f469a84 | |
parent | 452143c6bf0dcf76ef415281b0e4fbc3edff4b6b (diff) | |
download | vim-git-02f9e6a60f9851046154ccf2ac170f25a0b3cc7d.tar.gz |
patch 8.2.1221: memory leak when updating popup windowv8.2.1221
Problem: Memory leak when updating popup window.
Solution: Clear search highlighting.
-rw-r--r-- | src/popupwin.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 59a0bdf78..296441b11 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -3855,6 +3855,11 @@ update_popups(void (*win_update)(win_T *wp)) // Back to the normal zindex. screen_zindex = 0; } + +#if defined(FEAT_SEARCH_EXTRA) + // In case win_update() called start_search_hl(). + end_search_hl(); +#endif } /* diff --git a/src/version.c b/src/version.c index 424234b9a..f0cfe69a3 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1221, +/**/ 1220, /**/ 1219, |