From a8e02d4dfa6af4b104eebe59c06065db2d6330c2 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Mon, 29 Dec 2014 17:58:51 +0100 Subject: [PATCH] Firefox: fix copy-paste memory leak --- platform/firefox/vapi-background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index cbd2dfd8b..1aa49d445 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -668,7 +668,7 @@ vAPI.toolbarButton.init = function() { vAPI.unload.push(function() { CustomizableUI.destroyWidget(vAPI.toolbarButton.widgetId); - vAPI.messaging.globalMessageManager.addMessageListener( + vAPI.messaging.globalMessageManager.removeMessageListener( location.host + ':closePopup', vAPI.toolbarButton.closePopup );