From ee3e42d83920825ef69c571264b321698bd5dd4a Mon Sep 17 00:00:00 2001 From: Ramesh KV Date: Wed, 1 Apr 2026 17:41:51 +0530 Subject: [PATCH] fix: use array delete operator to delete array, this was causing a crash in node 24 --- src/node-opus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }