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);
      }
 



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to