aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorunknown2010-04-02 16:51:06 +0800
committerilya2010-04-02 15:06:57 -0700
commite773a008ba6d23844ebc5d7d85d17e8119f1872c (patch)
tree4b3d30ef1516f3c401e7fcb036e9343d8dccc114
parent3d6236c82ea9aa634fde2bf5bb61af1c10d6c783 (diff)
downloadvimium-e773a008ba6d23844ebc5d7d85d17e8119f1872c.tar.bz2
Fix memory leak from tabQueue
-rw-r--r--background_page.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/background_page.html b/background_page.html
index ef24a241..a07c4507 100644
--- a/background_page.html
+++ b/background_page.html
@@ -331,6 +331,10 @@
delete openTabs[tabId];
});
+
+ chrome.windows.onRemoved.addListener(function(windowId) {
+ delete tabQueue[windowId];
+ });
function restoreTab(callback) {
// TODO(ilya): Should this be getLastFocused instead?