]> granicus.if.org Git - vim/commitdiff
patch 8.2.1221: memory leak when updating popup window v8.2.1221
authorBram Moolenaar <Bram@vim.org>
Wed, 15 Jul 2020 16:27:08 +0000 (18:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 15 Jul 2020 16:27:08 +0000 (18:27 +0200)
Problem:    Memory leak when updating popup window.
Solution:   Clear search highlighting.

src/popupwin.c
src/version.c

index 59a0bdf78a8d062336fa0feacffd15a4288fc64a..296441b11be767c53d9841522bf1b5f454322d3d 100644 (file)
@@ -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
 }
 
 /*
index 424234b9a05abfdd9e704fd6c85059bec1a20de0..f0cfe69a31f419d156638cdcbaa31dfd055c5dcf 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1221,
 /**/
     1220,
 /**/