From 1d0c063717abc6c19059017629a0f31ed732fa76 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 25 Sep 2009 09:06:13 +0000 Subject: [PATCH] i KNOW there is a bug here... the question is.. how to fix it? git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@42692 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/cache/evas_cache_image.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/cache/evas_cache_image.c b/src/lib/cache/evas_cache_image.c index 3b834e0..6607146 100644 --- a/src/lib/cache/evas_cache_image.c +++ b/src/lib/cache/evas_cache_image.c @@ -328,7 +328,10 @@ _evas_cache_image_async_call__locked(Image_Entry *im) while (im->targets) { Evas_Cache_Target *tmp = im->targets; - + + // FIXME: bug bug bug bug. hrrrm. + // FIXME: this is a little bad if obj gets deleted before preload + // async event comes in... boom! evas_async_events_put(tmp->target, EVAS_CALLBACK_IMAGE_PRELOADED, NULL, (void (*)(void*, Evas_Callback_Type, void*))evas_object_event_callback_call); im->targets = (Evas_Cache_Target*) eina_inlist_remove(EINA_INLIST_GET(im->targets), EINA_INLIST_GET(im->targets)); -- 2.7.4