# HG changeset patch # User Bram Moolenaar # Date 1594830603 -7200 # Node ID e562f5d1e2a485064d8f84694d28401fdd453cf5 # Parent 6a32859392be048190b6fcc1cfbb29d715c0fba4 patch 8.2.1221: memory leak when updating popup window Commit: https://github.com/vim/vim/commit/02f9e6a60f9851046154ccf2ac170f25a0b3cc7d Author: Bram Moolenaar Date: Wed Jul 15 18:27:08 2020 +0200 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 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -3855,6 +3855,11 @@ update_popups(void (*win_update)(win_T * // 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 --- 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,