forked from AuroraMiddleware/gtk
libpng error handlers must not return to their callers, thus longjmp out.
* io-png.c (png_simple_error_callback): libpng error handlers must not return to their callers, thus longjmp out. This prevents annoying stderr output from the default error handler.
This commit is contained in:
parent
835094b105
commit
5c16742258
@ -1,3 +1,9 @@
|
||||
2002-03-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* io-png.c (png_simple_error_callback): libpng error handlers must
|
||||
not return to their callers, thus longjmp out. This prevents
|
||||
annoying stderr output from the default error handler.
|
||||
|
||||
2002-03-27 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* io-png.c (gdk_pixbuf__png_image_stop_load): Don't leak info_ptr.
|
||||
|
@ -183,6 +183,8 @@ png_simple_error_callback(png_structp png_save_ptr,
|
||||
_("Fatal error in PNG image file: %s"),
|
||||
error_msg);
|
||||
}
|
||||
|
||||
longjmp (png_save_ptr->jmpbuf, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user