From 190fe8ba05cc15ce8f92372696f797035a3b6c24 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 3 Feb 2013 02:46:09 -0500 Subject: [PATCH] Don't leak a hidden browser for every single imported text/HTML file It is possible we have been doing this for a very long time. (Only local imports were affected, not snapshot saving.) --- chrome/content/zotero/xpcom/attachments.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index f9acbf5e8..e22659350 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1345,6 +1345,7 @@ Zotero.Attachments = new function(){ // Chain fulltext indexer inside the charset callback, // since it's asynchronous and a prerequisite Zotero.Fulltext.indexDocument(browser.contentDocument, itemID); + Zotero.Browser.deleteHiddenBrowser(browser); } // Since the callback can be called during an import process that uses