mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
channel: Free channels created from libuv streams
This commit is contained in:
parent
29bc6dfabd
commit
5d2f923fcf
@ -637,6 +637,7 @@ static void close_channel(Channel *channel)
|
||||
uv_handle_t *handle = (uv_handle_t *)channel->data.streams.uv;
|
||||
if (handle) {
|
||||
uv_close(handle, close_cb);
|
||||
free_channel(channel);
|
||||
} else {
|
||||
event_push((Event) { .handler = on_stdio_close }, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user