summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/sandbox_mount_point_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/fileapi/sandbox_mount_point_provider.cc')
-rw-r--r--webkit/fileapi/sandbox_mount_point_provider.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc
index e79624e..cbcda1d 100644
--- a/webkit/fileapi/sandbox_mount_point_provider.cc
+++ b/webkit/fileapi/sandbox_mount_point_provider.cc
@@ -316,8 +316,11 @@ SandboxMountPointProvider::SandboxMountPointProvider(
}
SandboxMountPointProvider::~SandboxMountPointProvider() {
- if (!file_message_loop_->BelongsToCurrentThread())
- file_message_loop_->ReleaseSoon(FROM_HERE, sandbox_file_util_.release());
+ if (!file_message_loop_->BelongsToCurrentThread()) {
+ ObfuscatedFileUtil* sandbox_file_util = sandbox_file_util_.release();
+ if (!file_message_loop_->ReleaseSoon(FROM_HERE, sandbox_file_util))
+ sandbox_file_util->Release();
+ }
}
void SandboxMountPointProvider::ValidateFileSystemRoot(