]> granicus.if.org Git - vim/commitdiff
patch 8.2.0472: terminal highlight name is set twice, leaking memory v8.2.0472
authorBram Moolenaar <Bram@vim.org>
Sat, 28 Mar 2020 21:37:14 +0000 (22:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 28 Mar 2020 21:37:14 +0000 (22:37 +0100)
Problem:    Terminal highlight name is set twice, leaking memory.
Solution:   Delete one.

src/terminal.c
src/version.c

index bc4532900f9c9fa2071acb1c73f224eaa614d806..2ff697acfa0d05d3798e186367ce3924a44f091f 100644 (file)
@@ -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;
index 1d71cf0f06327c65ddc3c8b24524819825601f84..59e601421defb54e504f7aa69044bbc0a01ba2e5 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    472,
 /**/
     471,
 /**/