Revert Sven's changes
This commit is contained in:
parent
c148ec9040
commit
f60992f5c7
@ -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
|
||||
|
@ -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"...
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user