summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-26 22:22:38 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-26 22:22:38 +0200
commit0aca293fedfd22d489297f7cbce6a7de86748151 (patch)
treecd459fb0e6497b66cc725b9e5a8bbb1d78dd84d5
parent4f0d002cf9213812eca3a95560e8685018d601a7 (diff)
patch 8.1.1755: leaking memory when using a popup window maskv8.1.1755
Problem: Leaking memory when using a popup window mask. Solution: Free the cached mask.
-rw-r--r--src/version.c2
-rw-r--r--src/window.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
index 1ae8910ccc..8518667e91 100644
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1755,
+/**/
1754,
/**/
1753,
diff --git a/src/window.c b/src/window.c
index 8466c46940..3937fc566c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -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