Firefox: fix copy-paste memory leak

This commit is contained in:
Deathamns 2014-12-29 17:58:51 +01:00
parent fbd2f74eb5
commit a8e02d4dfa
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ vAPI.toolbarButton.init = function() {
vAPI.unload.push(function() { vAPI.unload.push(function() {
CustomizableUI.destroyWidget(vAPI.toolbarButton.widgetId); CustomizableUI.destroyWidget(vAPI.toolbarButton.widgetId);
vAPI.messaging.globalMessageManager.addMessageListener( vAPI.messaging.globalMessageManager.removeMessageListener(
location.host + ':closePopup', location.host + ':closePopup',
vAPI.toolbarButton.closePopup vAPI.toolbarButton.closePopup
); );