evas: we should not rely on mutex recursive stuff. fix potential source of bug.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 May 2011 12:55:57 +0000 (12:55 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 May 2011 12:55:57 +0000 (12:55 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59294 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/cache/evas_cache_image.c

index 7e6196c..119c773 100644 (file)
@@ -546,10 +546,10 @@ evas_cache_image_set(Evas_Cache_Image *cache, unsigned int limit)
         return;
      }
    cache->limit = limit;
-   evas_cache_image_flush(cache);
 #ifdef EVAS_FRAME_QUEUING
    LKU(cache->lock);
 #endif
+   evas_cache_image_flush(cache);
 }
 
 EAPI Evas_Cache_Image *