1
0
forked from aniani/vim

patch 8.0.0728: the terminal structure is never freed

Problem:    The terminal structure is never freed.
Solution:   Free the structure and unreference what it contains.
This commit is contained in:
Bram Moolenaar
2017-07-17 23:20:24 +02:00
parent 60d0e97497
commit 96ca27a0ee
7 changed files with 73 additions and 18 deletions

View File

@@ -6772,7 +6772,7 @@ f_job_stop(typval_T *argvars, typval_T *rettv)
job_T *job = get_job_arg(&argvars[0]);
if (job != NULL)
rettv->vval.v_number = job_stop(job, argvars);
rettv->vval.v_number = job_stop(job, argvars, NULL);
}
#endif