diff options
authorJunsuChoi <>2020-01-22 11:57:26 -0500
committerMike Blumenkrantz <>2020-01-22 11:57:26 -0500
commit93bd97025983e48ae8048d0c63b5d8b314f1de42 (patch)
parentbaa787008269a26f79dc1f95f4d0ce0d9d16a204 (diff)
efl_ui_image: Call unload file when calling file_set
Summary: We have checked that unload is not called even if different files call again elm_image_file_set on the same object. If file_set is called repeatedly, I think a potential error can occur. So, modify to call unload when doing file_set by referring to efl_ui_zoomable. Test Plan: N/A Reviewers: Hermet, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision:
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c
index 1f6ba219d1..1de73161c5 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -999,6 +999,7 @@ _efl_ui_image_smart_internal_file_set(Eo *obj, Efl_Ui_Image_Data *sd)
999 const Eina_File *f; 999 const Eina_File *f;
1000 const char *key; 1000 const char *key;
1001 const char *file = efl_file_get(obj); 1001 const char *file = efl_file_get(obj);
1002 efl_file_unload(obj);
1002 1003
1003 if (eina_str_has_extension(file, ".edj")) 1004 if (eina_str_has_extension(file, ".edj"))
1004 return _efl_ui_image_edje_file_set(obj); 1005 return _efl_ui_image_edje_file_set(obj);