mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge
This commit is contained in:
commit
a2969e9dea
@ -1115,7 +1115,12 @@ LoginManagerStorage_mozStorage.prototype = {
|
||||
// Memoize the statements
|
||||
if (!wrappedStmt) {
|
||||
this.log("Creating new statement for query: " + query);
|
||||
this._dbStmts[query] = this._dbConnection.createStatement(query);
|
||||
let stmt = this._dbConnection.createStatement(query);
|
||||
|
||||
wrappedStmt = Cc["@mozilla.org/storage/statement-wrapper;1"].
|
||||
createInstance(Ci.mozIStorageStatementWrapper);
|
||||
wrappedStmt.initialize(stmt);
|
||||
this._dbStmts[query] = wrappedStmt;
|
||||
}
|
||||
// Replace parameters, must be done 1 at a time
|
||||
if (params)
|
||||
@ -1354,7 +1359,7 @@ 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();
|
||||
this._dbStmts[i].statement.finalize();
|
||||
this._dbStmts = [];
|
||||
|
||||
// Close the connection, ignore 'already closed' error
|
||||
|
Loading…
Reference in New Issue
Block a user