changeset 17514:984cc7258468 v8.1.1755

patch 8.1.1755: leaking memory when using a popup window mask commit https://github.com/vim/vim/commit/0aca293fedfd22d489297f7cbce6a7de86748151 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 26 22:22:38 2019 +0200 patch 8.1.1755: leaking memory when using a popup window mask Problem: Leaking memory when using a popup window mask. Solution: Free the cached mask.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Jul 2019 22:30:09 +0200
parents b805db4bd1c0
children ea9798fcdb36
files src/version.c src/window.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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