mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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.
This commit is contained in:
@@ -1003,6 +1003,9 @@ free_buffer_stuff(
|
|||||||
#endif
|
#endif
|
||||||
#ifdef FEAT_NETBEANS_INTG
|
#ifdef FEAT_NETBEANS_INTG
|
||||||
netbeans_file_killed(buf);
|
netbeans_file_killed(buf);
|
||||||
|
#endif
|
||||||
|
#ifdef FEAT_PROP_POPUP
|
||||||
|
ga_clear_strings(&buf->b_textprop_text);
|
||||||
#endif
|
#endif
|
||||||
map_clear_mode(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings
|
map_clear_mode(buf, MAP_ALL_MODES, TRUE, FALSE); // clear local mappings
|
||||||
map_clear_mode(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs
|
map_clear_mode(buf, MAP_ALL_MODES, TRUE, TRUE); // clear local abbrevs
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
69,
|
||||||
/**/
|
/**/
|
||||||
68,
|
68,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user