From: Bram Moolenaar Date: Mon, 25 Jul 2022 18:07:04 +0000 (+0100) Subject: patch 9.0.0069: leaking memory when using text prop with inserted text X-Git-Tag: v9.0.0069 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c740e745a5f8702fd87689615a9684664e40764;p=thirdparty%2Fvim.git 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 index bbbfdb7814..436c0e9512 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1003,6 +1003,9 @@ free_buffer_stuff( #endif #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 diff --git a/src/version.c b/src/version.c index 04e01007c6..a07ccb748e 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 69, /**/ 68, /**/