Index: content/child/fileapi/webfilesystem_impl.cc |
diff --git a/content/child/fileapi/webfilesystem_impl.cc b/content/child/fileapi/webfilesystem_impl.cc |
index 62e9f0eda62f8f94b220f912c0a08585cebf20a7..9c4403a4170df850e2e6c8d8f657d9b6e9291e7d 100644 |
--- a/content/child/fileapi/webfilesystem_impl.cc |
+++ b/content/child/fileapi/webfilesystem_impl.cc |
@@ -342,8 +342,10 @@ WebFileSystemImpl* WebFileSystemImpl::ThreadSpecificInstance( |
void WebFileSystemImpl::DeleteThreadSpecificInstance() { |
DCHECK(!WorkerTaskRunner::Instance()->CurrentWorkerId()); |
- if (g_webfilesystem_tls.Pointer()->Get()) |
+ if (g_webfilesystem_tls.Pointer()->Get()) { |
delete g_webfilesystem_tls.Pointer()->Get(); |
+ g_webfilesystem_tls.Pointer()->Set(NULL); |
kinuko
2014/05/08 07:44:09
Don't we do this in WebFileSystemImpl dtor?
tzik
2014/05/08 08:05:30
Ah, yes, it's done in it. Reverted.
|
+ } |
} |
WebFileSystemImpl::WebFileSystemImpl(base::MessageLoopProxy* main_thread_loop) |