diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 11:28:59 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-27 11:28:59 +0000 |
commit | 10adfcef4008c5ff5ccff171fc4c4046ab9202ad (patch) | |
tree | 422371ffb4176730bef47a0e3ea7f764de3283bd /webkit | |
parent | a2236244e3cda61f76afcdefc137d6f04d54e24f (diff) | |
download | chromium_src-10adfcef4008c5ff5ccff171fc4c4046ab9202ad.zip chromium_src-10adfcef4008c5ff5ccff171fc4c4046ab9202ad.tar.gz chromium_src-10adfcef4008c5ff5ccff171fc4c4046ab9202ad.tar.bz2 |
Leak fix in CrosMountPointProvider
BUG=97879
TEST=FileSystemPathManagerTest.*
Review URL: http://codereview.chromium.org/8028023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/chromeos/fileapi/cros_mount_point_provider.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc index 55b574a..678d706 100644 --- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc @@ -1,4 +1,4 @@ - // Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -84,14 +84,15 @@ void CrosMountPointProvider::ValidateFileSystemRootAndGetURL( const GURL& origin_url, fileapi::FileSystemType type, bool create, - fileapi::FileSystemPathManager::GetRootPathCallback* callback_ptr) { + fileapi::FileSystemPathManager::GetRootPathCallback* callback) { DCHECK(type == fileapi::kFileSystemTypeExternal); std::string name(GetOriginIdentifierFromURL(origin_url)); name += ':'; name += fileapi::kExternalName; FilePath root_path; root_path = FilePath(fileapi::kExternalDir); - callback_ptr->Run(true, root_path, name); + callback->Run(true, root_path, name); + delete callback; } FilePath CrosMountPointProvider::ValidateFileSystemRootAndGetPathOnFileThread( |