< prev index next >
src/java.desktop/share/native/libjavajpeg/imageioJPEG.c
Print this page
@@ -2870,10 +2870,11 @@
jerr = (sun_jpeg_error_ptr) cinfo->err;
if (setjmp(jerr->setjmp_buffer)) {
/* If we get here, the JPEG code has signaled an error
while writing. */
+ RELEASE_ARRAYS(env, data, (const JOCTET *)(dest->next_output_byte));
if (!(*env)->ExceptionOccurred(env)) {
char buffer[JMSG_LENGTH_MAX];
(*cinfo->err->format_message) ((j_common_ptr) cinfo,
buffer);
JNU_ThrowByName(env, "javax/imageio/IIOException", buffer);
< prev index next >