Index: Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp (revision 122120) |
+++ Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.cpp (working copy) |
@@ -187,8 +187,10 @@ |
m_callbacksOnWorkerThread = 0; |
if (m_workerContextObserver) { |
- delete m_workerContextObserver; |
+ WorkerFileSystemContextObserver* observer = m_workerContextObserver; |
m_workerContextObserver = 0; |
+ // The next line may delete this. |
+ delete observer; |
} |
} |