efl-1.8.6-giflib.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. diff -rupN a/src/modules/evas/loaders/gif/evas_image_load_gif.c b/src/modules/evas/loaders/gif/evas_image_load_gif.c
  2. --- a/src/modules/evas/loaders/gif/evas_image_load_gif.c 2014-05-19 16:10:12.000000000 +0000
  3. +++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c 2014-06-01 11:05:50.963850389 +0000
  4. @@ -528,7 +528,7 @@ evas_image_load_file_head_gif2(void *loa
  5. ret = EINA_TRUE;
  6. on_error: // jump here on any errors to clean up
  7. - if (gif) DGifCloseFile(gif);
  8. + if (gif) DGifCloseFile(gif, NULL);
  9. if (fi.map) eina_file_map_free(f, fi.map);
  10. return ret;
  11. }
  12. @@ -606,7 +606,7 @@ open_file:
  13. // start as we have nothnig to build on
  14. if ((index > 0) && (index < loader->imgnum) && (animated->animated))
  15. {
  16. - if (loader->gif) DGifCloseFile(loader->gif);
  17. + if (loader->gif) DGifCloseFile(loader->gif, NULL);
  18. if ((loader->fi.map) && (loader->f))
  19. eina_file_map_free(loader->f, loader->fi.map);
  20. loader->gif = NULL;
  21. @@ -764,7 +764,7 @@ open_file:
  22. loader->imgnum = imgnum;
  23. if ((animated->frame_count <= 1) || (rec == TERMINATE_RECORD_TYPE))
  24. {
  25. - if (loader->gif) DGifCloseFile(loader->gif);
  26. + if (loader->gif) DGifCloseFile(loader->gif, NULL);
  27. if ((loader->fi.map) && (loader->f))
  28. eina_file_map_free(loader->f, loader->fi.map);
  29. loader->gif = NULL;
  30. @@ -848,7 +848,7 @@ static void
  31. evas_image_load_file_close_gif2(void *loader_data)
  32. {
  33. Loader_Info *loader = loader_data;
  34. - if (loader->gif) DGifCloseFile(loader->gif);
  35. + if (loader->gif) DGifCloseFile(loader->gif, NULL);
  36. if ((loader->fi.map) && (loader->f))
  37. eina_file_map_free(loader->f, loader->fi.map);
  38. free(loader);