diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 22:55:47 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 22:55:47 +0000 |
commit | 1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3 (patch) | |
tree | cec5652d6d3a1dbf3875a1b58cd09d602ec6f3af /printing | |
parent | a4137af3ab19dc0fed8def4b3f66872aeaf5094b (diff) | |
download | chromium_src-1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3.zip chromium_src-1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3.tar.gz chromium_src-1f1e7cb4c07acbec92de5c49a2cd4a206282b7c3.tar.bz2 |
scoped_ptr and new[] don't mix.
BUG=99261
TEST=none
Review URL: http://codereview.chromium.org/8207004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/backend/print_backend_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/printing/backend/print_backend_win.cc b/printing/backend/print_backend_win.cc index 39f085e..01be277 100644 --- a/printing/backend/print_backend_win.cc +++ b/printing/backend/print_backend_win.cc @@ -142,7 +142,7 @@ bool PrintBackendWin::GetPrinterCapsAndDefaults( NULL, NULL, 0); if (devmode_size <= 0) return false; - scoped_ptr<BYTE> devmode_out_buffer(new BYTE[devmode_size]); + scoped_array<BYTE> devmode_out_buffer(new BYTE[devmode_size]); DEVMODE* devmode_out = reinterpret_cast<DEVMODE*>(devmode_out_buffer.get()); DocumentProperties( |