From: raster Date: Mon, 16 May 2011 02:06:41 +0000 (+0000) Subject: pointed out by jiyoun ... but patch wasn't quite right. shouldnt X-Git-Tag: accepted/2.0/20130306.225542~242^2~603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c44aabab53fea4187610d018b483beb0c969b66b;p=profile%2Fivi%2Fevas.git pointed out by jiyoun ... but patch wasn't quite right. shouldnt 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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59431 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/cache/evas_cache_image.c b/src/lib/cache/evas_cache_image.c index 171aa24..ee4bb57 100644 --- a/src/lib/cache/evas_cache_image.c +++ b/src/lib/cache/evas_cache_image.c @@ -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;