Mercurial > vim
comparison src/misc2.c @ 13236:fee03d646e42 v8.0.1492
patch 8.0.1492: memory leak in balloon_split()
commit https://github.com/vim/vim/commit/b301f6b950975b9d7ae87a4f551b32bba63ccdcf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 10 15:38:35 2018 +0100
patch 8.0.1492: memory leak in balloon_split()
Problem: Memory leak in balloon_split().
Solution: Free the balloon lines. Free the balloon when exiting.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 10 Feb 2018 15:45:07 +0100 |
parents | ed51483e9971 |
children | ac42c4b11dbc |
comparison
equal
deleted
inserted
replaced
13235:6f7bfbf0f237 | 13236:fee03d646e42 |
---|---|
1112 do_cmdline_cmd((char_u *)"only!"); | 1112 do_cmdline_cmd((char_u *)"only!"); |
1113 | 1113 |
1114 # if defined(FEAT_SPELL) | 1114 # if defined(FEAT_SPELL) |
1115 /* Free all spell info. */ | 1115 /* Free all spell info. */ |
1116 spell_free_all(); | 1116 spell_free_all(); |
1117 # endif | |
1118 | |
1119 #if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM) | |
1120 ui_remove_balloon(); | |
1117 # endif | 1121 # endif |
1118 | 1122 |
1119 # if defined(FEAT_USR_CMDS) | 1123 # if defined(FEAT_USR_CMDS) |
1120 /* Clear user commands (before deleting buffers). */ | 1124 /* Clear user commands (before deleting buffers). */ |
1121 ex_comclear(NULL); | 1125 ex_comclear(NULL); |