From 389b23e55aa35163b68ccb1e649bea1dbf081719 Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Sun, 18 Aug 2024 13:23:26 +0200 Subject: [PATCH] fix(plugin): added revokeObjectURL --- src/tmpl/plugin.tmpl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tmpl/plugin.tmpl.js b/src/tmpl/plugin.tmpl.js index e9b2966ea9..4cac4ffae6 100644 --- a/src/tmpl/plugin.tmpl.js +++ b/src/tmpl/plugin.tmpl.js @@ -105,6 +105,7 @@ async function getImageSize (src) { Buffer.from(await res.arrayBuffer()) ); const dimension = await imageMeta(data); + URL.revokeObjectURL(blob) dimensionCache.set(url, dimension); }