Patch 8.2.0472

8 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 28, 2020, 5:37:52 PM3/28/20
to vim...@googlegroups.com

Patch 8.2.0472
Problem: Terminal highlight name is set twice, leaking memory.
Solution: Delete one.
Files: src/terminal.c


*** ../vim-8.2.0471/src/terminal.c 2020-03-26 20:33:20.995063766 +0100
--- src/terminal.c 2020-03-28 22:34:39.941772950 +0100
***************
*** 6925,6932 ****
jobopt_T *orig_opt UNUSED)
{
term->tl_arg0_cmd = NULL;
- if (opt->jo_set2 & JO2_TERM_HIGHLIGHT)
- term->tl_highlight_name = vim_strsave(opt->jo_term_highlight);

if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL)
return FAIL;
--- 6925,6930 ----
*** ../vim-8.2.0471/src/version.c 2020-03-28 22:06:07.587491239 +0100
--- src/version.c 2020-03-28 22:35:17.485649092 +0100
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 472,
/**/

--
Mental Floss prevents moral decay!

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages