From: Bram Moolenaar Date: Fri, 26 Jul 2019 20:22:38 +0000 (+0200) Subject: patch 8.1.1755: leaking memory when using a popup window mask X-Git-Tag: v8.1.1755 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0aca293fedfd22d489297f7cbce6a7de86748151;p=vim 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. --- diff --git a/src/version.c b/src/version.c index 1ae8910cc..8518667e9 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1755, /**/ 1754, /**/ diff --git a/src/window.c b/src/window.c index 8466c4694..3937fc566 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