diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-25 23:10:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-25 23:10:17 +0100 |
commit | c8dcbb12c5d7f3eb0c334daebb4475bb015b91e7 (patch) | |
tree | 1c59c8c123ad290f1753a0b38171fd9ad1fa3ebd /src/proto | |
parent | d2227a02b03708eb0579e17612d5a96262f3d463 (diff) | |
download | vim-git-c8dcbb12c5d7f3eb0c334daebb4475bb015b91e7.tar.gz |
patch 7.4.1421v7.4.1421
Problem: May free a channel when a callback may need to be invoked.
Solution: Keep the channel when refcount is zero.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/channel.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro index 96b51b977..8dc4ad44d 100644 --- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -4,6 +4,7 @@ int ch_log_active(void); void ch_log(channel_T *ch, char *msg); void ch_logs(channel_T *ch, char *msg, char *name); channel_T *add_channel(void); +void channel_may_free(channel_T *channel); void channel_free(channel_T *channel); void channel_gui_register(channel_T *channel); void channel_gui_register_all(void); |