0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1828

Problem:    May try to access buffer that's already freed.
Solution:   When freeing a buffer remove it from any channel.
This commit is contained in:
Bram Moolenaar
2016-05-09 20:38:53 +02:00
parent fb6ffc732e
commit e0f76d0097
4 changed files with 59 additions and 14 deletions

View File

@@ -676,6 +676,9 @@ free_buffer(buf_T *buf)
#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)