[gimp] Bug 751089: Part PNG files are not opened properly
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 751089: Part PNG files are not opened properly
- Date: Tue, 30 Jun 2015 17:54:08 +0000 (UTC)
commit f72f8f20e57ba8abeac3a656b07314a34673776c
Author: Massimo Valentini <mvalentini src gnome org>
Date: Tue Jun 30 19:41:41 2015 +0200
Bug 751089: Part PNG files are not opened properly
plug-ins/common/file-png.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 44d7aac..2ecee68 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -767,6 +767,7 @@ on_read_error (png_structp png_ptr,
GEGL_RECTANGLE (0, begin, error_data->width, num));
}
+ g_object_unref (error_data->buffer);
longjmp (png_jmpbuf (png_ptr), 1);
}
@@ -869,6 +870,7 @@ load_image (const gchar *filename,
}
png_init_io (pp, fp);
+ png_set_compression_buffer_size (pp, 512);
/*
* Get the image dimensions and create the image...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]