Mercurial > vim
comparison src/buffer.c @ 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 | fcf524e1e97e |
children | d3058719eff5 |
comparison
equal
deleted
inserted
replaced
29454:f13c7d6be742 | 29455:e1e99ef28040 |
---|---|
1001 #ifdef FEAT_SIGNS | 1001 #ifdef FEAT_SIGNS |
1002 buf_delete_signs(buf, (char_u *)"*"); // delete any signs | 1002 buf_delete_signs(buf, (char_u *)"*"); // delete any signs |
1003 #endif | 1003 #endif |
1004 #ifdef FEAT_NETBEANS_INTG | 1004 #ifdef FEAT_NETBEANS_INTG |
1005 netbeans_file_killed(buf); | 1005 netbeans_file_killed(buf); |
1006 #endif | |
1007 #ifdef FEAT_PROP_POPUP | |
1008 ga_clear_strings(&buf->b_textprop_text); | |
1006 #endif | 1009 #endif |
1007 map_clear_mode(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings | 1010 map_clear_mode(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings |
1008 map_clear_mode(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs | 1011 map_clear_mode(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs |
1009 VIM_CLEAR(buf->b_start_fenc); | 1012 VIM_CLEAR(buf->b_start_fenc); |
1010 } | 1013 } |