summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiin.moon <jiin.moon@samsung.com>2017-05-31 19:01:03 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-05-31 19:01:04 +0900
commit2c119f54afdb21fea7474a55334e5764d23a548c (patch)
treef5b77790fce2e7b2fb0bb8672909e792579bdefc
parent602039cf836d8b489a29a2a80749af43434fa457 (diff)
downloadefl-2c119f54afdb21fea7474a55334e5764d23a548c.tar.gz
elm_image: Fix previous image visible issue
Summary: Previous image still visible when elm_image_file_set has wrong file path. Test Plan: self Reviewers: jpeg, jypark, singh.amitesh Reviewed By: singh.amitesh Subscribers: singh.amitesh, minkyu, cedric Differential Revision: https://phab.enlightenment.org/D4888
-rw-r--r--src/lib/elementary/efl_ui_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c
index 7c4e13a954..f1dcc259e1 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -904,6 +904,7 @@ _efl_ui_image_smart_internal_file_set(Eo *obj, Efl_Ui_Image_Data *sd,
{
ERR("NULL image file passed! (%p)", obj);
}
+ _prev_img_del(sd);
return EINA_FALSE;
}
@@ -2022,6 +2023,8 @@ elm_image_memfile_set(Evas_Object *obj, const void *img, size_t size, const char
" bytes): %s (%p)", size, evas_load_error_str(err), sd->img);
else
ERR("NULL image data passed (%p)", sd->img);
+
+ _prev_img_del(sd);
return EINA_FALSE;
}