pointed out by jiyoun ... but patch wasn't quite right. shouldnt
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 May 2011 02:06:41 +0000 (02:06 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 May 2011 02:06:41 +0000 (02:06 +0000)
manually ref-- the old im - should call drop. also... dont make
original dirty as we don't modify it, we just drop (unref) it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59431 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/cache/evas_cache_image.c

index 171aa24..ee4bb57 100644 (file)
@@ -1128,11 +1128,11 @@ evas_cache_image_size_set(Image_Entry *im, unsigned int w, unsigned int h)
 #ifdef EVAS_FRAME_QUEUING
    LKL(im2->lock_references);
 #endif
-   im->references = 1;
+   im2->references = 1;
 #ifdef EVAS_FRAME_QUEUING
    LKU(im2->lock_references);
 #endif
-   _evas_cache_image_dirty_add(im);
+   evas_cache_image_drop(im);
    if (cache->func.debug) cache->func.debug("size_set", im2);
    return im2;