async handles should be closed on exit

This commit is contained in:
Cheng Zhao 2017-02-28 10:58:52 +09:00
parent a0605275b9
commit d379b05890
2 changed files with 2 additions and 0 deletions

View file

@ -84,6 +84,7 @@ AtomBindings::AtomBindings() {
}
AtomBindings::~AtomBindings() {
uv_close(reinterpret_cast<uv_handle_t*>(&call_next_tick_async_), nullptr);
}
void AtomBindings::BindTo(v8::Isolate* isolate,

View file

@ -117,6 +117,7 @@ NodeBindings::~NodeBindings() {
// Clear uv.
uv_sem_destroy(&embed_sem_);
uv_close(reinterpret_cast<uv_handle_t*>(&dummy_uv_handle_), nullptr);
}
void NodeBindings::Initialize() {