Revert Sven's changes

This commit is contained in:
Nick Lamb /GIMP 2000-04-21 01:38:36 +00:00
parent c148ec9040
commit f60992f5c7
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2000-04-20 Nick Lamb <njl195@zepler.org.uk>
* plug-ins/common/png.c: Revert Sven's changes, I am not that
silly Sven, read the code more carefully and THINK about it.
We do not want to leak Gimp Images.
2000-04-20 Sven Neumann <sven@gimp.org>
* plug-ins/common/align_layers.c: applied patch provided by

View File

@ -398,9 +398,13 @@ load_image (gchar *filename) /* I - File to load */
if (setjmp (pp->jmpbuf))
{
g_message (_("%s\nPNG error. File corrupted?"), filename);
return -1;
return image;
}
/* initialise variables here, thus avoiding compiler warnings */
image= -1;
/*
* Open the file and initialize the PNG read "engine"...
*/