Commit 14dab951 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix a leak in an error path

svn path=/trunk/; revision=17306
parent e4b16672
2007-02-16 Matthias Clasen <mclasen@redhat.com>
* io-png.c: Don't leak in the error path. (#405539, Daniel Atallah)
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
* io-jpeg.c: (gdk_pixbuf__jpeg_image_load),
......
......@@ -917,8 +917,10 @@ static gboolean real_save_png (GdkPixbuf *pixbuf,
error,
png_simple_error_callback,
png_simple_warning_callback);
g_return_val_if_fail (png_ptr != NULL, FALSE);
if (png_ptr == NULL) {
success = FALSE;
goto cleanup;
}
info_ptr = png_create_info_struct (png_ptr);
if (info_ptr == NULL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment