From 365f387843be702e08f8cd34a2195d6e7166808c Mon Sep 17 00:00:00 2001 From: Mat Sz Date: Wed, 15 May 2024 18:09:09 +0200 Subject: [PATCH] fix: prevent dismissed transfers from being stored in memory indefinitely --- web/src/stores/Transfer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/stores/Transfer.ts b/web/src/stores/Transfer.ts index e284ef4..4f50283 100644 --- a/web/src/stores/Transfer.ts +++ b/web/src/stores/Transfer.ts @@ -393,6 +393,10 @@ export class Transfer { } stop() { + if (this.blobUrl) { + URL.revokeObjectURL(this.blobUrl); + } + if (this.peerConnection) { try { this.peerConnection.close();