summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.cc
diff options
context:
space:
mode:
authorhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-15 01:36:37 +0000
committerhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-15 01:36:37 +0000
commit65fc9303e1b34b8888618219ee795ed4062c0210 (patch)
treef8f2f5f79caa0a1c2177f42f8cf0ecb36c63c61c /chrome_frame/utils.cc
parent888ef8ef2cec50e9581ac509e060fc70e7cf8a94 (diff)
downloadchromium_src-65fc9303e1b34b8888618219ee795ed4062c0210.zip
chromium_src-65fc9303e1b34b8888618219ee795ed4062c0210.tar.gz
chromium_src-65fc9303e1b34b8888618219ee795ed4062c0210.tar.bz2
Fixing missed deallocation of pointer from FileVersionInfo::CreateFileVersionInfoForCurrentModule().
BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10910257 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r--chrome_frame/utils.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index dc8d24c..1450d46 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -295,10 +295,9 @@ HRESULT UtilGetXUACompatContentValue(const std::wstring& html_string,
void DisplayVersionMismatchWarning(HWND parent,
const std::string& server_version) {
// Obtain the current module version.
- FileVersionInfo* file_version_info =
- FileVersionInfo::CreateFileVersionInfoForCurrentModule();
- DCHECK(file_version_info);
- std::wstring version_string(file_version_info->file_version());
+ scoped_ptr<FileVersionInfo> module_version_info(
+ FileVersionInfo::CreateFileVersionInfoForCurrentModule());
+ string16 version_string(module_version_info->file_version());
std::wstring wide_server_version;
if (server_version.empty()) {
wide_server_version = SimpleResourceLoader::Get(IDS_VERSIONUNKNOWN);