summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 14:23:05 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 14:23:05 +0000
commit79e966831a3f3600705f72b632929bfa570e672d (patch)
tree522eec449150660f01122d474c5e842b5f7a9746 /chrome
parentfba9d3644c2188d59f4c5302bc5a912eeb68e846 (diff)
downloadchromium_src-79e966831a3f3600705f72b632929bfa570e672d.zip
chromium_src-79e966831a3f3600705f72b632929bfa570e672d.tar.gz
chromium_src-79e966831a3f3600705f72b632929bfa570e672d.tar.bz2
Fix a leak introduced in http://codereview.chromium.org/62061
Fixes valgrind warning 09:57:13 valgrind_analyze.py [ERROR] Leak_DefinitelyLost 1 bytes in 1 blocks are definitely lost in loss record 2 of 260 operator new(unsigned int) (vg_replace_malloc.c:195) FileVersionInfo::CreateFileVersionInfoForCurrentModule() (base/file_version_info_linux.cc:21) AutomationProvider::ConnectToChannel(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) (chrome/browser/automation/automation_provider.cc:811) Review URL: http://codereview.chromium.org/79087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/automation/automation_provider.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index cdeea75..8383feb 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -807,8 +807,8 @@ void AutomationProvider::ConnectToChannel(const std::wstring& channel_id) {
new IPC::SyncChannel(channel_id, IPC::Channel::MODE_CLIENT, this, NULL,
g_browser_process->io_thread()->message_loop(),
true, g_browser_process->shutdown_event()));
- FileVersionInfo* file_version_info =
- FileVersionInfo::CreateFileVersionInfoForCurrentModule();
+ scoped_ptr<FileVersionInfo> file_version_info(
+ FileVersionInfo::CreateFileVersionInfoForCurrentModule());
std::string version_string(WideToASCII(file_version_info->file_version()));
// Send a hello message with our current automation protocol version.