Mercurial > vim
changeset 29455:e1e99ef28040 v9.0.0069
patch 9.0.0069: leaking memory when using text prop with inserted text
Commit: https://github.com/vim/vim/commit/0c740e745a5f8702fd87689615a9684664e40764
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Jul 2022 20:15:02 +0200 |
parents | f13c7d6be742 |
children | 7242f365caad |
files | src/buffer.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);