Patch 8.0.1492
Problem: Memory leak in balloon_split().
Solution: Free the balloon lines. Free the balloon when exiting.
Files: src/misc2.c, src/evalfunc.c
*** ../vim-8.0.1491/src/misc2.c 2018-02-09 12:29:52.335647866 +0100
--- src/misc2.c 2018-02-10 15:25:43.743470651 +0100
***************
*** 1116,1121 ****
--- 1116,1125 ----
spell_free_all();
# endif
+ #if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM)
+ ui_remove_balloon();
+ # endif
+
# if defined(FEAT_USR_CMDS)
/* Clear user commands (before deleting buffers). */
ex_comclear(NULL);
*** ../vim-8.0.1491/src/evalfunc.c 2018-02-09 20:53:52.634060838 +0100
--- src/evalfunc.c 2018-02-10 15:28:43.678248474 +0100
***************
*** 1447,1452 ****
--- 1447,1454 ----
/* Skip the first and last item, they are always empty. */
for (i = 1; i < size - 1; ++i)
list_append_string(rettv->vval.v_list, array[i].pum_text, -1);
+ while (size > 0)
+ vim_free(array[--size].pum_text);
vim_free(array);
}
}
*** ../vim-8.0.1491/src/version.c 2018-02-10 15:36:51.138901636 +0100
--- src/version.c 2018-02-10 15:37:54.902461454 +0100
***************
*** 773,774 ****
--- 773,776 ----
{ /* Add new patch number below this line */
+ /**/
+ 1492,
/**/
--
CUSTOMER: Well, can you hang around a couple of minutes? He won't be
long.
MORTICIAN: Naaah, I got to go on to Robinson's -- they've lost nine today.
CUSTOMER: Well, when is your next round?
MORTICIAN: Thursday.
DEAD PERSON: I think I'll go for a walk.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.