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.)
This commit is contained in:
Dan Stillman 2013-02-03 02:46:09 -05:00
parent 2eb5430ed3
commit 190fe8ba05

View File

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