From 1ebc0fdd83fc8afe8c93685433fd521328db51c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Mon, 13 Jul 2009 13:35:55 -0700 Subject: [PATCH] Bug 501798 - Not actually finalizing statements in _dbCleanup --- toolkit/components/passwordmgr/src/storage-mozStorage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/passwordmgr/src/storage-mozStorage.js b/toolkit/components/passwordmgr/src/storage-mozStorage.js index a4ba233ae00..f2222bff5ed 100644 --- a/toolkit/components/passwordmgr/src/storage-mozStorage.js +++ b/toolkit/components/passwordmgr/src/storage-mozStorage.js @@ -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