mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
fix(windows): Reset Buffer after write operations are complete to free memory (#1547)
This commit is contained in:
parent
9dbccbc755
commit
a1eef112d6
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue