Bug 501798 - Not actually finalizing statements in _dbCleanup

This commit is contained in:
Paul O’Shannessy 2009-07-13 13:35:55 -07:00
parent d9997307e2
commit b396105289

View File

@ -1567,8 +1567,8 @@ LoginManagerStorage_mozStorage.prototype = {
}
// Finalize all statements to free memory, avoid errors later
for (let i = 0; i < this._dbStmts.length; i++)
this._dbStmts[i].finalize();
for each (let stmt in this._dbStmts)
stmt.finalize();
this._dbStmts = [];
// Close the connection, ignore 'already closed' error