Skip to content

Commit

Permalink
cjpeg.c: Code formatting tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dcommander committed Apr 12, 2021
1 parent ebaa67e commit 629e96e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cjpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ static void my_emit_message(j_common_ptr cinfo, int msg_level)
cinfo->err->num_warnings++;
}

#define HANDLE_ERROR() { \
if (cinfo.global_state > CSTATE_START) { \
if (memdst && outbuffer) \
(*cinfo.dest->term_destination) (&cinfo); \
jpeg_abort_compress(&cinfo); \
} \
jpeg_destroy_compress(&cinfo); \
#define HANDLE_ERROR() { \
if (cinfo.global_state > CSTATE_START) { \
if (memdst && outbuffer) \
(*cinfo.dest->term_destination) (&cinfo); \
jpeg_abort_compress(&cinfo); \
} \
jpeg_destroy_compress(&cinfo); \
if (input_file != stdin && input_file != NULL) \
fclose(input_file); \
if (memdst) \
free(outbuffer); \
return EXIT_FAILURE; \
fclose(input_file); \
if (memdst) \
free(outbuffer); \
return EXIT_FAILURE; \
}

#endif
Expand Down

0 comments on commit 629e96e

Please sign in to comment.