Commit 866a57dc authored by darin@apple.com's avatar darin@apple.com

Reviewed by Mark Rowe.

        - fix http://bugs.webkit.org/show_bug.cgi?id=16468
          REGRESSION(r28781): Crash running storage/transaction_callback_exception_crash.html

        * storage/DatabaseThread.cpp:
        (WebCore::DatabaseThread::dispatchNextTaskIdentifier): Use a RefPtr for the database
        because there's no guarantee it won't lose its last reference otherwise.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 19da9a6f
2007-12-17 Darin Adler <darin@apple.com>
Reviewed by Mark Rowe.
- fix http://bugs.webkit.org/show_bug.cgi?id=16468
REGRESSION(r28781): Crash running storage/transaction_callback_exception_crash.html
* storage/DatabaseThread.cpp:
(WebCore::DatabaseThread::dispatchNextTaskIdentifier): Use a RefPtr for the database
because there's no guarantee it won't lose its last reference otherwise.
2007-12-17 Dan Bernstein <mitz@apple.com>
Reviewed by Maciej Stachowiak.
......
......@@ -155,7 +155,7 @@ void* DatabaseThread::databaseThread()
bool DatabaseThread::dispatchNextTaskIdentifier()
{
Database* workDatabase = 0;
RefPtr<Database> workDatabase;
RefPtr<DatabaseTask> task;
{
......@@ -179,7 +179,7 @@ bool DatabaseThread::dispatchNextTaskIdentifier()
if (task) {
ASSERT(workDatabase);
workDatabase->resetAuthorizer();
task->performTask(workDatabase);
task->performTask(workDatabase.get());
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment