evas/cserve2: Check for errors in evas sw engine

This commit is contained in:
Jean-Philippe Andre 2013-05-31 13:59:04 +09:00 committed by Cedric Bail
parent 19fb35d657
commit 82584a85fb
1 changed files with 2 additions and 4 deletions

View File

@ -949,8 +949,7 @@ eng_image_load(void *data EINA_UNUSED, const char *file, const char *key, int *e
ie = evas_cache2_image_open(evas_common_image_cache2_get(),
file, key, lo, error);
if (ie)
evas_cache2_image_open_wait(ie);
*error = evas_cache2_image_open_wait(ie);
return ie;
}
#endif
@ -969,8 +968,7 @@ eng_image_mmap(void *data EINA_UNUSED, Eina_File *f, const char *key, int *error
ie = evas_cache2_image_open(evas_common_image_cache2_get(),
eina_file_filename_get(f), key, lo, error);
if (ie)
evas_cache2_image_open_wait(ie);
*error = evas_cache2_image_open_wait(ie);
return ie;
}
#endif