diff options
Diffstat (limited to 'kernel/kls_jpeg/fmt_codec_jpeg.cpp')
-rw-r--r-- | kernel/kls_jpeg/fmt_codec_jpeg.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/kls_jpeg/fmt_codec_jpeg.cpp b/kernel/kls_jpeg/fmt_codec_jpeg.cpp index 60fe8e8..237a8d0 100644 --- a/kernel/kls_jpeg/fmt_codec_jpeg.cpp +++ b/kernel/kls_jpeg/fmt_codec_jpeg.cpp @@ -277,7 +277,7 @@ s32 fmt_codec::write_next_pass() s32 fmt_codec::write_scanline(RGBA *scan) { - RGB sr[writeimage.w]; + RGB *sr = new RGB[writeimage.w]; for(s32 s = 0;s < writeimage.w;s++) { @@ -288,6 +288,7 @@ s32 fmt_codec::write_scanline(RGBA *scan) (void)jpeg_write_scanlines(&m_cinfo, &row_pointer, 1); + delete [] sr; return SQE_OK; } |