diff --git a/src/node-opus.cc b/src/node-opus.cc index 930cb8bc..6a617312 100644 --- a/src/node-opus.cc +++ b/src/node-opus.cc @@ -76,7 +76,7 @@ NodeOpusEncoder::~NodeOpusEncoder() { this->encoder = nullptr; this->decoder = nullptr; - if (this->outPcm) delete this->outPcm; + if (this->outPcm) delete[] this->outPcm; this->outPcm = nullptr; }