lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v192 64 lines 2.2 kB view raw
1diff -ruN imlib2-1.4.6.orig/src/modules/loaders/loader_gif.c imlib2-1.4.6/src/modules/loaders/loader_gif.c 2--- imlib2-1.4.6.orig/src/modules/loaders/loader_gif.c 2013-12-21 10:16:10.000000000 +0000 3+++ imlib2-1.4.6/src/modules/loaders/loader_gif.c 2014-05-27 09:52:35.857291512 +0000 4@@ -36,7 +36,7 @@ 5 #endif 6 if (fd < 0) 7 return 0; 8- gif = DGifOpenFileHandle(fd); 9+ gif = DGifOpenFileHandle(fd, NULL); 10 if (!gif) 11 { 12 close(fd); 13@@ -60,13 +60,13 @@ 14 h = gif->Image.Height; 15 if (!IMAGE_DIMENSIONS_OK(w, h)) 16 { 17- DGifCloseFile(gif); 18+ DGifCloseFile(gif, NULL); 19 return 0; 20 } 21 rows = malloc(h * sizeof(GifRowType *)); 22 if (!rows) 23 { 24- DGifCloseFile(gif); 25+ DGifCloseFile(gif, NULL); 26 return 0; 27 } 28 for (i = 0; i < h; i++) 29@@ -78,7 +78,7 @@ 30 rows[i] = malloc(w * sizeof(GifPixelType)); 31 if (!rows[i]) 32 { 33- DGifCloseFile(gif); 34+ DGifCloseFile(gif, NULL); 35 for (i = 0; i < h; i++) 36 { 37 if (rows[i]) 38@@ -150,7 +150,7 @@ 39 im->data = (DATA32 *) malloc(sizeof(DATA32) * w * h); 40 if (!im->data) 41 { 42- DGifCloseFile(gif); 43+ DGifCloseFile(gif, NULL); 44 free(rows); 45 return 0; 46 } 47@@ -181,7 +181,7 @@ 48 last_per = (int)per; 49 if (!(progress(im, (int)per, 0, last_y, w, i))) 50 { 51- DGifCloseFile(gif); 52+ DGifCloseFile(gif, NULL); 53 for (i = 0; i < h; i++) 54 { 55 free(rows[i]); 56@@ -198,7 +198,7 @@ 57 { 58 progress(im, 100, 0, last_y, w, h); 59 } 60- DGifCloseFile(gif); 61+ DGifCloseFile(gif, NULL); 62 for (i = 0; i < h; i++) 63 { 64 free(rows[i]);