]> granicus.if.org Git - vim/commitdiff
patch 8.1.1755: leaking memory when using a popup window mask v8.1.1755
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Jul 2019 20:22:38 +0000 (22:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Jul 2019 20:22:38 +0000 (22:22 +0200)
Problem:    Leaking memory when using a popup window mask.
Solution:   Free the cached mask.

src/version.c
src/window.c

index 1ae8910ccce1ba73a001150e0d0518640c6220cc..8518667e913085f8785d62d93f2fb96ac5cacb56 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1755,
 /**/
     1754,
 /**/
index 8466c469404a3730b61b34faf1488196d9abf4b9..3937fc566c46d3f0b5b32868e25a3a05e7edb684 100644 (file)
@@ -4865,6 +4865,7 @@ win_free(
     vim_free(wp->w_thumb_highlight);
     vim_free(wp->w_popup_title);
     list_unref(wp->w_popup_mask);
+    vim_free(wp->w_popup_mask_cells);
 #endif
 
 #ifdef FEAT_SYN_HL