From a0dc5c16acb0eae963581a570e925f2b95bb1560 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Mon, 13 Jan 2014 15:52:00 +0900 Subject: [PATCH] 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. --- src/lib/evas/cache2/evas_cache2.c | 4 ++-- 1 file 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, _evas_cache2_image_activ_add(ret); found: + if (evas_cache2_image_load_data(ret) != EVAS_LOAD_ERROR_NONE) + return NULL; ret->references++; - evas_cache2_image_load_data(ret); - return ret; }