From a59cd2a0400c886922511bfa9b3de7906c0bba45 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 16 May 2011 02:06:41 +0000 Subject: [PATCH] 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. SVN revision: 59431 --- legacy/evas/src/lib/cache/evas_cache_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/lib/cache/evas_cache_image.c b/legacy/evas/src/lib/cache/evas_cache_image.c index 171aa2412e..ee4bb57d18 100644 --- a/legacy/evas/src/lib/cache/evas_cache_image.c +++ b/legacy/evas/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; -- 2.34.1