discomfitor pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=ba5edc9ec7f11f11fd1192f1b6c8a46cad7f8d4b

commit ba5edc9ec7f11f11fd1192f1b6c8a46cad7f8d4b
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Aug 23 14:24:11 2017 -0400

    evas image cache: notify preload for image objects without explicit 
callbacks
    
    non-gl images do not have an explicit callback and so the preload inform 
callback
    must be triggered manually for all cases
    
    fix T5200
---
 src/lib/evas/cache/evas_cache_image.c | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/src/lib/evas/cache/evas_cache_image.c 
b/src/lib/evas/cache/evas_cache_image.c
index ec44a2112c..138aff82a3 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -1466,22 +1466,7 @@ evas_cache_image_preload_data(Image_Entry *im, const Eo 
*target,
        (((im->flags.loaded) && (img->image.data)) ||
         (im->flags.textured && !im->flags.updated_data)))
      {
-        Evas_Cache_Target *tmp;
-
-        while ((tmp = im->targets))
-          {
-             im->targets = (Evas_Cache_Target *)
-               eina_inlist_remove(EINA_INLIST_GET(im->targets),
-                                  EINA_INLIST_GET(im->targets));
-             if (tmp->simple_cb)
-               {
-                  if (!tmp->delete_me)
-                    {
-                       tmp->simple_cb(tmp->simple_data);
-                    }
-               }
-             free(tmp);
-          }
+        _evas_cache_image_preloaded_notify(im);
         evas_object_inform_call_image_preloaded((Evas_Object*)target);
         evas_cache_image_drop(im);
         return;

-- 


Reply via email to