summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-28 22:37:14 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-28 22:37:14 +0100
commit360bdbda817920657a2ec8bf329c96a749dd7224 (patch)
treef44d850d24c47013583fb7920ca1148cb12ff38b
parenta30590d3e78aed3f6039edc642fb7532c40ea54e (diff)
patch 8.2.0472: terminal highlight name is set twice, leaking memoryv8.2.0472
Problem: Terminal highlight name is set twice, leaking memory. Solution: Delete one.
-rw-r--r--src/terminal.c2
-rw-r--r--src/version.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c
index bc4532900f..2ff697acfa 100644
--- 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;
diff --git a/src/version.c b/src/version.c
index 1d71cf0f06..59e601421d 100644
--- 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,