diff options
author | jiin.moon <jiin.moon@samsung.com> | 2017-05-31 19:01:03 +0900 |
---|---|---|
committer | Amitesh Singh <amitesh.sh@samsung.com> | 2017-05-31 19:01:04 +0900 |
commit | 2c119f54afdb21fea7474a55334e5764d23a548c (patch) | |
tree | f5b77790fce2e7b2fb0bb8672909e792579bdefc | |
parent | 602039cf836d8b489a29a2a80749af43434fa457 (diff) | |
download | efl-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.c | 3 |
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; } |