mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
channel: Free channels created from libuv streams
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user