Skip to content

Commit

Permalink
upgraded png version line 167 448
Browse files Browse the repository at this point in the history
  • Loading branch information
Kemin Zhou committed Oct 19, 2016
1 parent 944ee2b commit a8ca8d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libplot/z_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ _pl_z_maybe_output_image (S___(Plotter *_plotter))
return -1;
}

/* cleanup after libpng errors (error handler does a longjmp) */
if (setjmp (png_ptr->jmpbuf))
/* cleanup after libpng errors (error handler does a longjmp) */ /*if (setjmp (png_ptr->jmpbuf))*/
if (setjmp (png_jmpbuf(png_ptr)))
{
png_destroy_write_struct (&png_ptr, (png_info **)NULL);
return -1;
Expand Down Expand Up @@ -444,7 +444,8 @@ _our_error_fn_stdio (png_struct *png_ptr, const char *data)
#endif
}

longjmp (png_ptr->jmpbuf, 1);
/* longjmp (png_ptr->jmpbuf, 1); */
longjmp(png_jmpbuf(png_ptr), 1);
}

static void
Expand Down

0 comments on commit a8ca8d7

Please sign in to comment.