summaryrefslogtreecommitdiffstats
path: root/kernel/kls_jpeg
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2015-07-08 23:17:54 +0200
committerSlávek Banko <[email protected]>2015-07-08 23:17:54 +0200
commit7d97c1a5ed3cc47c38fca756081eb5c04e2d12e6 (patch)
treebde1c642c528d96b00de7eef724e187738a35130 /kernel/kls_jpeg
parentaef0dd23e55dd3d8e57825ee832928cf3ce00cd4 (diff)
downloadlibksquirrel-7d97c1a5ed3cc47c38fca756081eb5c04e2d12e6.tar.gz
libksquirrel-7d97c1a5ed3cc47c38fca756081eb5c04e2d12e6.zip
Fix FTBFS on freebsd
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kernel/kls_jpeg')
-rw-r--r--kernel/kls_jpeg/fmt_codec_jpeg.cpp3
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;
}