summaryrefslogtreecommitdiff
path: root/src/lib/evas/cache2
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-01-13 15:52:00 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-01-14 14:23:04 +0900
commita0dc5c16acb0eae963581a570e925f2b95bb1560 (patch)
tree9ea678d1f130a8d1d15b007146cf9f990b9c1056 /src/lib/evas/cache2
parent35fd233d0c95afedc5507e4ebe165361b1425681 (diff)
Evas/cserve2: Add another load error check
This one is very unlikely as it would mean the image is invalid while being in the hash.
Diffstat (limited to 'src/lib/evas/cache2')
-rw-r--r--src/lib/evas/cache2/evas_cache2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c
index 7d67447021..f60a073b42 100644
--- a/src/lib/evas/cache2/evas_cache2.c
+++ b/src/lib/evas/cache2/evas_cache2.c
@@ -861,10 +861,10 @@ _scaled_image_find(Image_Entry *im, int src_x, int src_y, int src_w,
861 _evas_cache2_image_activ_add(ret); 861 _evas_cache2_image_activ_add(ret);
862 862
863 found: 863 found:
864 if (evas_cache2_image_load_data(ret) != EVAS_LOAD_ERROR_NONE)
865 return NULL;
864 ret->references++; 866 ret->references++;
865 867
866 evas_cache2_image_load_data(ret);
867
868 return ret; 868 return ret;
869} 869}
870 870