aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-05-31 13:59:04 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-06-14 16:38:18 +0900
commit82584a85fb9bd843a2fff671846846505f510ab6 (patch)
treec0949944097ee3bde83c08eb864d2df69a96cdc1
parentevas/cserve2: Close scaled images after drawing (diff)
downloadefl-82584a85fb9bd843a2fff671846846505f510ab6.tar.gz
evas/cserve2: Check for errors in evas sw engine
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index ef766dd479..75a9bbb1a0 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -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