comparison src/terminal.c @ 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 d73d982499ae
children 435726a03481
comparison
equal deleted inserted replaced
19831:3d689590024d 19832:b3f956c2ed3c
6923 char **argv, 6923 char **argv,
6924 jobopt_T *opt, 6924 jobopt_T *opt,
6925 jobopt_T *orig_opt UNUSED) 6925 jobopt_T *orig_opt UNUSED)
6926 { 6926 {
6927 term->tl_arg0_cmd = NULL; 6927 term->tl_arg0_cmd = NULL;
6928 if (opt->jo_set2 & JO2_TERM_HIGHLIGHT)
6929 term->tl_highlight_name = vim_strsave(opt->jo_term_highlight);
6930 6928
6931 if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL) 6929 if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL)
6932 return FAIL; 6930 return FAIL;
6933 6931
6934 #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) 6932 #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS)