Bug 1193022 - clean up reference-counting in storage/; r=mak

This commit is contained in:
Nathan Froyd 2015-07-01 13:11:11 -04:00
parent 01f693c138
commit c9a9b22e7b
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ AsyncExecuteStatements::execute(StatementDataArray &aStatements,
NS_ENSURE_SUCCESS(rv, rv);
// Return it as the pending statement object and track it.
NS_ADDREF(*_stmt = event);
event.forget(_stmt);
return NS_OK;
}

View File

@ -1583,7 +1583,7 @@ Connection::ExecuteSimpleSQLAsync(const nsACString &aSQLStatement,
return rv;
}
NS_ADDREF(*_handle = pendingStatement);
pendingStatement.forget(_handle);
return rv;
}