changeset 19832:b3f956c2ed3c v8.2.0472

patch 8.2.0472: terminal highlight name is set twice, leaking memory Commit: https://github.com/vim/vim/commit/360bdbda817920657a2ec8bf329c96a749dd7224 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 28 22:37:14 2020 +0100 patch 8.2.0472: terminal highlight name is set twice, leaking memory Problem: Terminal highlight name is set twice, leaking memory. Solution: Delete one.
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Mar 2020 22:45:03 +0100
parents 3d689590024d
children 7f50fd15954b
files src/terminal.c src/version.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -6925,8 +6925,6 @@ term_and_job_init(
 	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;
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    472,
+/**/
     471,
 /**/
     470,