summaryrefslogtreecommitdiffstats
path: root/base/gfx
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 22:23:53 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 22:23:53 +0000
commit89dd4eed72dfea6912684540a65842ad01773aa6 (patch)
tree7d7d01a3877ec1b6e7424fc1aeb03b10e855bea6 /base/gfx
parent706ab7f69fe1f8bd46d3341bf2709a93664c724d (diff)
downloadchromium_src-89dd4eed72dfea6912684540a65842ad01773aa6.zip
chromium_src-89dd4eed72dfea6912684540a65842ad01773aa6.tar.gz
chromium_src-89dd4eed72dfea6912684540a65842ad01773aa6.tar.bz2
Additional svn ignores for native_client and Makefile.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r--base/gfx/jpeg_codec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gfx/jpeg_codec.cc b/base/gfx/jpeg_codec.cc
index f2e82c2..da0611d 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
- unsigned char* row = new unsigned char[w * 3];
+ scoped_array<unsigned char> row_data(new unsigned char[w * 3]);
+ unsigned char* row = row_data.get();
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);