mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0472: terminal highlight name is set twice, leaking memory
Problem: Terminal highlight name is set twice, leaking memory. Solution: Delete one.
This commit is contained in:
@@ -6925,8 +6925,6 @@ term_and_job_init(
|
|||||||
jobopt_T *orig_opt UNUSED)
|
jobopt_T *orig_opt UNUSED)
|
||||||
{
|
{
|
||||||
term->tl_arg0_cmd = NULL;
|
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)
|
if (create_vterm(term, term->tl_rows, term->tl_cols) == FAIL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
472,
|
||||||
/**/
|
/**/
|
||||||
471,
|
471,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user