commit | e0f76d00979c972329f6c371463a20da61ccad65 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon May 09 20:38:53 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon May 09 20:38:53 2016 +0200 |
tree | e28e61d582639de36a5885f47333ae7d63a90dc1 | |
parent | fb6ffc732e65dbc459c89247ff78134402f1a18b [diff] [blame] |
patch 7.4.1828 Problem: May try to access buffer that's already freed. Solution: When freeing a buffer remove it from any channel.
diff --git a/src/buffer.c b/src/buffer.c index 9bc24bc..e884f55 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -676,6 +676,9 @@ #ifdef FEAT_RUBY ruby_buffer_free(buf); #endif +#ifdef FEAT_JOB_CHANNEL + channel_buffer_free(buf); +#endif #ifdef FEAT_AUTOCMD aubuflocal_remove(buf); if (autocmd_busy)