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.
This commit is contained in:
parent
35fd233d0c
commit
a0dc5c16ac
|
@ -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);
|
_evas_cache2_image_activ_add(ret);
|
||||||
|
|
||||||
found:
|
found:
|
||||||
|
if (evas_cache2_image_load_data(ret) != EVAS_LOAD_ERROR_NONE)
|
||||||
|
return NULL;
|
||||||
ret->references++;
|
ret->references++;
|
||||||
|
|
||||||
evas_cache2_image_load_data(ret);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue