]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0069: leaking memory when using text prop with inserted text v9.0.0069
authorBram Moolenaar <Bram@vim.org>
Mon, 25 Jul 2022 18:07:04 +0000 (19:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 25 Jul 2022 18:07:04 +0000 (19:07 +0100)
Problem:    Leaking memory when using text prop with inserted text.
Solution:   Clear the growarray with text.

src/buffer.c
src/version.c

index bbbfdb7814ffbb69bb805ed4eb6a287653705eb3..436c0e95126f6061f754027edc61c32cc10a2a51 100644 (file)
@@ -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
index 04e01007c67e1453fda016034e9df94332cb4881..a07ccb748e589bfca18a6c1739042ba9f9a4f405 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    69,
 /**/
     68,
 /**/