Firefox: fix copy-paste memory leak

pull/2/head
Deathamns 10 years ago committed by gorhill
parent ec337b61af
commit 71b0c22c9d

@ -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
); );

Loading…
Cancel
Save