0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1451

Problem:    Vim hangs when a channel has a callback but isn't referenced.
Solution:   Have channel_unref() only return TRUE when the channel was
            actually freed.
This commit is contained in:
Bram Moolenaar
2016-02-28 19:28:59 +01:00
parent 1c39102666
commit 707659490d
4 changed files with 10 additions and 6 deletions

View File

@@ -7747,10 +7747,7 @@ failret:
channel_unref(channel_T *channel)
{
if (channel != NULL && --channel->ch_refcount <= 0)
{
channel_may_free(channel);
return TRUE;
}
return channel_may_free(channel);
return FALSE;
}
#endif