commit | 02f9e6a60f9851046154ccf2ac170f25a0b3cc7d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jul 15 18:27:08 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jul 15 18:27:08 2020 +0200 |
tree | 593583704cf9c3f0a19a4aeecd61efea1f469a84 | |
parent | 452143c6bf0dcf76ef415281b0e4fbc3edff4b6b [diff] [blame] |
patch 8.2.1221: memory leak when updating popup window Problem: Memory leak when updating popup window. Solution: Clear search highlighting.
diff --git a/src/popupwin.c b/src/popupwin.c index 59a0bdf..296441b 100644 --- a/src/popupwin.c +++ b/src/popupwin.c
@@ -3855,6 +3855,11 @@ // 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 } /*