summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 00:03:45 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 00:03:45 +0000
commit1e11b171293a31d64523402fe8fdf3a8074bc695 (patch)
tree3a9a41754dd93a2002f8d1b48324a1dff0cdb25b /chrome_frame/utils.cc
parenta701e5ad76729b657a80d5f4c0c4395a00b94d23 (diff)
downloadchromium_src-1e11b171293a31d64523402fe8fdf3a8074bc695.zip
chromium_src-1e11b171293a31d64523402fe8fdf3a8074bc695.tar.gz
chromium_src-1e11b171293a31d64523402fe8fdf3a8074bc695.tar.bz2
Use scoped_array (not scoped_ptr) with new[].
BUG=24266 TEST=No functional change so make sure nothing changes. Review URL: http://codereview.chromium.org/307045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29843 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r--chrome_frame/utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index 246fa0d..fdcb7c7 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -361,7 +361,7 @@ bool GetModuleVersion(HMODULE module, uint32* high, uint32* low) {
if (readonly_resource_data && version_resource_size) {
// Copy data as VerQueryValue tries to modify the data. This causes
// exceptions and heap corruption errors if debugger is attached.
- scoped_ptr<char> data(new char[version_resource_size]);
+ scoped_array<char> data(new char[version_resource_size]);
memcpy(data.get(), readonly_resource_data, version_resource_size);
if (data.get()) {
VS_FIXEDFILEINFO* ver_info = NULL;