From b032d45b633095e5e54968ca0de8fa2b9493a046 Mon Sep 17 00:00:00 2001 From: Lisa Milne Date: Fri, 8 Dec 2023 17:32:23 +1000 Subject: [PATCH] fix potential memory leak in load.file() --- clite/core.js | 1 + 1 file changed, 1 insertion(+) diff --git a/clite/core.js b/clite/core.js index 280fd9b..565a5aa 100644 --- a/clite/core.js +++ b/clite/core.js @@ -62,6 +62,7 @@ var clite = { link.href = URL.createObjectURL(blob); document.body.appendChild(link); link.click(); + URL.revokeObjectURL(link.href); document.body.removeChild(link); }, reboot:function() {