summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/SQLTransactionSync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/SQLTransactionSync.cpp')
-rw-r--r--WebCore/storage/SQLTransactionSync.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/storage/SQLTransactionSync.cpp b/WebCore/storage/SQLTransactionSync.cpp
index e56d7b4..87f1eff 100644
--- a/WebCore/storage/SQLTransactionSync.cpp
+++ b/WebCore/storage/SQLTransactionSync.cpp
@@ -58,7 +58,7 @@ SQLTransactionSync::SQLTransactionSync(DatabaseSync* db, PassRefPtr<SQLTransacti
, m_callback(callback)
, m_readOnly(readOnly)
, m_modifiedDatabase(false)
- , m_transactionClient(new SQLTransactionClient())
+ , m_transactionClient(adoptPtr(new SQLTransactionClient()))
{
ASSERT(m_database->scriptExecutionContext()->isContextThread());
}
@@ -130,7 +130,7 @@ ExceptionCode SQLTransactionSync::begin()
m_database->sqliteDatabase().setMaximumSize(m_database->maximumSize());
ASSERT(!m_sqliteTransaction);
- m_sqliteTransaction.set(new SQLiteTransaction(m_database->sqliteDatabase(), m_readOnly));
+ m_sqliteTransaction = adoptPtr(new SQLiteTransaction(m_database->sqliteDatabase(), m_readOnly));
m_database->resetDeletes();
m_database->disableAuthorizer();