aaah yes - the flush will ... possibly delete the image - in fract almost

definitely as it got to 0 fref. unlocking the image is bad as it was just
deleted. do the delete (cache fluch) after unlock.



SVN revision: 49089
This commit is contained in:
Carsten Haitzler 2010-05-21 07:44:07 +00:00
parent 6e93fa88d3
commit d17e840e13
1 changed files with 3 additions and 1 deletions

View File

@ -431,6 +431,7 @@ _evas_cache_image_async_end(void *data)
static void
_evas_cache_image_async_cancel(void *data)
{
Evas_Cache_Image *cache = NULL;
Image_Entry *ie = (Image_Entry *) data;
ie->preload = NULL;
@ -456,11 +457,12 @@ _evas_cache_image_async_cancel(void *data)
{
_evas_cache_image_remove_activ(ie->cache, ie);
_evas_cache_image_make_inactiv(ie->cache, ie, ie->cache_key);
evas_cache_image_flush(ie->cache);
cache = ie->cache;
}
#ifdef EVAS_FRAME_QUEUING
LKU(ie->lock_references);
#endif
if (cache) evas_cache_image_flush(cache);
}
static int