From 89dd4eed72dfea6912684540a65842ad01773aa6 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Mon, 13 Jul 2009 22:23:53 +0000 Subject: Additional svn ignores for native_client and Makefile. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20553 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/jpeg_codec.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base') 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 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); -- cgit v1.1