summaryrefslogtreecommitdiff
path: root/src/proto/channel.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-09 20:38:53 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-09 20:38:53 +0200
commite0f76d00979c972329f6c371463a20da61ccad65 (patch)
treee28e61d582639de36a5885f47333ae7d63a90dc1 /src/proto/channel.pro
parentfb6ffc732e65dbc459c89247ff78134402f1a18b (diff)
downloadvim-git-e0f76d00979c972329f6c371463a20da61ccad65.tar.gz
patch 7.4.1828v7.4.1828
Problem: May try to access buffer that's already freed. Solution: When freeing a buffer remove it from any channel.
Diffstat (limited to 'src/proto/channel.pro')
-rw-r--r--src/proto/channel.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro
index 5e0bec54b..5dc512181 100644
--- a/src/proto/channel.pro
+++ b/src/proto/channel.pro
@@ -14,6 +14,7 @@ void channel_set_pipes(channel_T *channel, sock_T in, sock_T out, sock_T err);
void channel_set_job(channel_T *channel, job_T *job, jobopt_T *options);
void channel_set_options(channel_T *channel, jobopt_T *opt);
void channel_set_req_callback(channel_T *channel, int part, char_u *callback, partial_T *partial, int id);
+void channel_buffer_free(buf_T *buf);
void channel_write_any_lines(void);
void channel_write_new_lines(buf_T *buf);
char_u *channel_get(channel_T *channel, int part);