fixed deletion

This commit is contained in:
antelle 2021-04-10 18:59:58 +02:00
parent 8f1b6ca3b7
commit 2e132690d1
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ void stdout_write_cb(uv_write_t *req, int status) {
auto buf = state.pending_to_stdout.front();
state.pending_to_stdout.pop();
delete buf.base;
delete[] buf.base;
state.write_to_stdout_in_progress = false;
@ -120,7 +120,7 @@ void keeweb_write_cb(uv_write_t *req, int status) {
auto buf = state.pending_to_keeweb.front();
state.pending_to_keeweb.pop();
delete buf.base;
delete[] buf.base;
state.write_to_keeweb_in_progress = false;