From 152f54f23bbba106401caa2cabf2b265e6160699 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Mon, 25 Jan 2016 14:16:03 +0100 Subject: [PATCH] Fix memory leak --- background.js | 2 ++ options.html | 1 + worker.js | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 460f547..5c12df0 100644 --- a/background.js +++ b/background.js @@ -65,6 +65,8 @@ chrome.pageAction.onClicked.addListener(function(tab) { if(config.replacebookmark) { replaceBookmark(url, newUrl); } + + worker.terminate(); }; worker.postMessage(JSON.stringify({pomfclone: config.url, url: betterUrl, filename: filename})); }); diff --git a/options.html b/options.html index 1bd13ac..67f91a3 100644 --- a/options.html +++ b/options.html @@ -42,6 +42,7 @@