diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-17 23:20:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-17 23:20:24 +0200 |
commit | 96ca27a0ee8ae738cab9fb386984c75c6821e31a (patch) | |
tree | d4c986e7262a996a095f6b4b71601dfc361c57a5 /src/proto | |
parent | 60d0e97497f1104b31f711072ef174af533b61fa (diff) | |
download | vim-git-96ca27a0ee8ae738cab9fb386984c75c6821e31a.tar.gz |
patch 8.0.0728: the terminal structure is never freedv8.0.0728
Problem: The terminal structure is never freed.
Solution: Free the structure and unreference what it contains.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/channel.pro | 2 | ||||
-rw-r--r-- | src/proto/terminal.pro | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro index 6c845ca94..e576584c4 100644 --- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -67,5 +67,5 @@ void job_check_ended(void); job_T *job_start(typval_T *argvars, jobopt_T *opt_arg); char *job_status(job_T *job); void job_info(job_T *job, dict_T *dict); -int job_stop(job_T *job, typval_T *argvars); +int job_stop(job_T *job, typval_T *argvars, char *type); /* vim: set ft=c : */ diff --git a/src/proto/terminal.pro b/src/proto/terminal.pro index e89b0a26a..58eb77fb5 100644 --- a/src/proto/terminal.pro +++ b/src/proto/terminal.pro @@ -1,5 +1,6 @@ /* terminal.c */ void ex_terminal(exarg_T *eap); +void free_terminal(term_T *term); void write_to_term(buf_T *buffer, char_u *msg, channel_T *channel); void term_update_window(win_T *wp); void terminal_loop(void); |