diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-28 22:37:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-28 22:37:14 +0100 |
commit | 360bdbda817920657a2ec8bf329c96a749dd7224 (patch) | |
tree | f44d850d24c47013583fb7920ca1148cb12ff38b /src/terminal.c | |
parent | a30590d3e78aed3f6039edc642fb7532c40ea54e (diff) | |
download | vim-git-360bdbda817920657a2ec8bf329c96a749dd7224.tar.gz |
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.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c index bc4532900..2ff697acf 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; |