Skip to content

Commit

Permalink
fix(windows): Reset Buffer after write operations are complete to fre…
Browse files Browse the repository at this point in the history
…e memory (#1547)
  • Loading branch information
benpurdy authored and reconbot committed Apr 10, 2018
1 parent 9dbccbc commit a1eef11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/serialport_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a1eef11

Please sign in to comment.