diff options
author | robertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 20:06:36 +0000 |
---|---|---|
committer | robertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 20:06:36 +0000 |
commit | 5af903766e619588dc04838a25b9d8b920b807d0 (patch) | |
tree | cb06ffdcd5859e6a19a26a5037e1d7fd0727b180 /chrome/test/automation/automation_proxy.cc | |
parent | e8c4e753d0a2bcdac816d472d9afa50fdafae7ba (diff) | |
download | chromium_src-5af903766e619588dc04838a25b9d8b920b807d0.zip chromium_src-5af903766e619588dc04838a25b9d8b920b807d0.tar.gz chromium_src-5af903766e619588dc04838a25b9d8b920b807d0.tar.bz2 |
Repair FileVersionInfo leak. Doh.
Review URL: http://codereview.chromium.org/99068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/automation_proxy.cc')
-rw-r--r-- | chrome/test/automation/automation_proxy.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/automation/automation_proxy.cc b/chrome/test/automation/automation_proxy.cc index 10dbbfc..ef70de8 100644 --- a/chrome/test/automation/automation_proxy.cc +++ b/chrome/test/automation/automation_proxy.cc @@ -221,9 +221,9 @@ AutomationLaunchResult AutomationProxy::WaitForAppLaunch() { if (perform_version_check_) { // Obtain our own version number and compare it to what the automation // provider sent. - FileVersionInfo* file_version_info = - FileVersionInfo::CreateFileVersionInfoForCurrentModule(); - DCHECK(file_version_info); + scoped_ptr<FileVersionInfo> file_version_info( + FileVersionInfo::CreateFileVersionInfoForCurrentModule()); + DCHECK(file_version_info != NULL); std::string version_string( WideToASCII(file_version_info->file_version())); |