From: Enlightenment C. <no...@cv...> - 2008-04-17 15:30:16
|
Enlightenment CVS committal Author : cedric Project : e17 Module : libs/evas Dir : e17/libs/evas/src/lib/cache Modified Files: evas_cache_image.c Log Message: Fix a bug caused by duplicated entry in the activ and dirty cache list. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/cache/evas_cache_image.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- evas_cache_image.c 12 Apr 2008 00:32:25 -0000 1.14 +++ evas_cache_image.c 17 Apr 2008 15:30:03 -0000 1.15 @@ -183,7 +183,6 @@ if (lo) ie->load_opts = *lo; - ie->references = 0; if (file) { *error = cache->func.constructor(ie); @@ -488,11 +487,7 @@ cache = im->cache; if (!(im->flags.dirty)) { - if (im->references == 1) - { - _evas_cache_image_remove_activ(cache, im); - im_dirty = im; - } + if (im->references == 1) im_dirty = im; else { int error; @@ -513,6 +508,7 @@ evas_cache_image_drop(im); } + _evas_cache_image_remove_activ(cache, im_dirty); _evas_cache_image_make_dirty(cache, im_dirty); } |