summaryrefslogtreecommitdiffstats
path: root/media-libs/gdk-pixbuf/files/gdk-pixbuf-ds-png.diff
blob: 39b4cb68ea6737cd8b806a64522a69d1a718fb99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
diff -dPNur gdk-pixbuf-0.22.0/gdk-pixbuf/io-png.c gdk-pixbuf-0.22.0-png15/gdk-pixbuf/io-png.c
--- gdk-pixbuf-0.22.0/gdk-pixbuf/io-png.c	2001-01-24 21:59:23.000000000 +0100
+++ gdk-pixbuf-0.22.0-png15/gdk-pixbuf/io-png.c	2012-11-16 14:32:15.000000000 +0100
@@ -174,11 +174,12 @@
 		png_destroy_read_struct (&png_ptr, &info_ptr, NULL);
 		return NULL;
 	}
-
+/*
 	if (setjmp (png_ptr->jmpbuf)) {
 		png_destroy_read_struct (&png_ptr, &info_ptr, &end_info);
 		return NULL;
 	}
+*/
 
 	png_init_io (png_ptr, f);
 	png_read_info (png_ptr, info_ptr);
@@ -311,12 +312,12 @@
                 return NULL;
         }
 
-	if (setjmp (lc->png_read_ptr->jmpbuf)) {
+/*	if (setjmp (lc->png_read_ptr->jmpbuf)) {
 		if (lc->png_info_ptr)
 			png_destroy_read_struct(&lc->png_read_ptr, NULL, NULL);
                 g_free(lc);
                 return NULL;
-	}
+	}*/
 
         /* Create the auxiliary context struct */
 
@@ -366,11 +367,11 @@
         lc->max_row_seen_in_chunk = -1;
         
         /* Invokes our callbacks as needed */
-	if (setjmp (lc->png_read_ptr->jmpbuf)) {
+/*	if (setjmp (lc->png_read_ptr->jmpbuf)) {
 		return FALSE;
-	} else {
+	} else {*/
 		png_process_data(lc->png_read_ptr, lc->png_info_ptr, buf, size);
-	}
+/*	}*/
 
         if (lc->fatal_error_occurred)
                 return FALSE;