summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/automation_proxy.cc
diff options
context:
space:
mode:
authorrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 20:06:36 +0000
committerrobertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 20:06:36 +0000
commit5af903766e619588dc04838a25b9d8b920b807d0 (patch)
treecb06ffdcd5859e6a19a26a5037e1d7fd0727b180 /chrome/test/automation/automation_proxy.cc
parente8c4e753d0a2bcdac816d472d9afa50fdafae7ba (diff)
downloadchromium_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.cc6
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()));