From e773a008ba6d23844ebc5d7d85d17e8119f1872c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 2 Apr 2010 16:51:06 +0800 Subject: Fix memory leak from tabQueue --- background_page.html | 4 ++++ 1 file changed, 4 insertions(+) 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? -- cgit v1.2.3