fix(windows): Reset Buffer after write operations are complete to free memory (#1547)

This commit is contained in:
benpurdy 2018-04-09 19:57:17 -07:00 • committed by Francis Gulotta
parent 9dbccbc755
commit a1eef112d6

View file

@ -388,6 +388,7 @@ void EIO_AfterWrite(uv_async_t* req) {
argv[0] = Nan::Null();
}
baton->callback.Call(1, argv);
baton->buffer.Reset();
delete baton;
}