Skip to content

Commit 30b89d8

Browse files
committed
free the sendBuffer and sendHeader when destroying the voice connection object
1 parent 278c316 commit 30b89d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/voice/VoiceConnection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,8 @@ class VoiceConnection extends EventEmitter {
912912
}
913913

914914
_destroy() {
915+
this.sendBuffer.free();
916+
this.sendHeader.free();
915917
if(this.opus) {
916918
for(const key in this.opus) {
917919
this.opus[key].delete?.();

0 commit comments

Comments
 (0)