# HG changeset patch # User Bram Moolenaar # Date 1658772902 -7200 # Node ID e1e99ef280401207c114a50f638563d78b1032b4 # Parent f13c7d6be7429fa92ca51aad3c5316a4e00ea245 patch 9.0.0069: leaking memory when using text prop with inserted text Commit: https://github.com/vim/vim/commit/0c740e745a5f8702fd87689615a9684664e40764 Author: Bram Moolenaar Date: Mon Jul 25 19:07:04 2022 +0100 patch 9.0.0069: leaking memory when using text prop with inserted text Problem: Leaking memory when using text prop with inserted text. Solution: Clear the growarray with text. diff --git a/src/buffer.c b/src/buffer.c --- a/src/buffer.c +++ b/src/buffer.c @@ -1004,6 +1004,9 @@ free_buffer_stuff( #ifdef FEAT_NETBEANS_INTG netbeans_file_killed(buf); #endif +#ifdef FEAT_PROP_POPUP + ga_clear_strings(&buf->b_textprop_text); +#endif map_clear_mode(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings map_clear_mode(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs VIM_CLEAR(buf->b_start_fenc); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 69, +/**/ 68, /**/ 67,