diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 22:34:25 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 22:34:25 +0000 |
commit | 54ec76d27e99b76d16831d48c5c9a13dee8a9c93 (patch) | |
tree | dbde1343223b6cb6158e85fc33d23db6dd6e58eb /base | |
parent | 89dd4eed72dfea6912684540a65842ad01773aa6 (diff) | |
download | chromium_src-54ec76d27e99b76d16831d48c5c9a13dee8a9c93.zip chromium_src-54ec76d27e99b76d16831d48c5c9a13dee8a9c93.tar.gz chromium_src-54ec76d27e99b76d16831d48c5c9a13dee8a9c93.tar.bz2 |
Revert r20553.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/gfx/jpeg_codec.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gfx/jpeg_codec.cc b/base/gfx/jpeg_codec.cc index da0611d..f2e82c2 100644 --- a/base/gfx/jpeg_codec.cc +++ b/base/gfx/jpeg_codec.cc @@ -247,13 +247,13 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, } // output row after converting - scoped_array<unsigned char> row_data(new unsigned char[w * 3]); - unsigned char* row = row_data.get(); + unsigned char* row = new unsigned char[w * 3]; while (cinfo.next_scanline < cinfo.image_height) { converter(&input[cinfo.next_scanline * row_byte_width], w, row); jpeg_write_scanlines(&cinfo, &row, 1); } + delete[] row; } jpeg_finish_compress(&cinfo); |