diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-25 19:07:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-25 19:07:04 +0100 |
commit | 0c740e745a5f8702fd87689615a9684664e40764 (patch) | |
tree | 831d8a97fb726de357411fa8ed16878d3f02b766 /src/buffer.c | |
parent | fe3fb6e1e6c90e9bada05518a13a72b3fc2f6a98 (diff) | |
download | vim-git-0c740e745a5f8702fd87689615a9684664e40764.tar.gz |
patch 9.0.0069: leaking memory when using text prop with inserted textv9.0.0069
Problem: Leaking memory when using text prop with inserted text.
Solution: Clear the growarray with text.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index bbbfdb781..436c0e951 100644 --- 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); |