1 --- evas-1.7.10/src/modules/loaders/gif/evas_image_load_gif.c~ 2013-08-01 17:41:35.000000000 +0200
2 +++ evas-1.7.10/src/modules/loaders/gif/evas_image_load_gif.c 2014-11-10 08:09:51.040708649 +0100
8 + DGifCloseFile(gif, NULL);
9 for (i = 0; i < scale_h; i++)
13 if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) ||
17 + DGifCloseFile(gif, NULL);
18 if (IMG_TOO_BIG(w, h))
19 *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
22 if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
24 /* PrintGifError(); */
26 + DGifCloseFile(gif, NULL);
27 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
31 if (DGifGetImageDesc(gif) == GIF_ERROR)
33 /* PrintGifError(); */
35 + DGifCloseFile(gif, NULL);
36 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
40 if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR)
42 /* PrintGifError(); */
44 + DGifCloseFile(gif, NULL);
45 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
53 + DGifCloseFile(gif, NULL);
54 *error = EVAS_LOAD_ERROR_NONE;
60 ie->frames = eina_list_append(ie->frames, frame);
62 + DGifCloseFile(gif, NULL);
67 *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT;
71 + DGifCloseFile(gif, NULL);
72 *error = EVAS_LOAD_ERROR_NONE;
77 } while (rec != TERMINATE_RECORD_TYPE);
80 + DGifCloseFile(gif, NULL);