From 6c6ac71f5689e74403e0fcb6ed404957b2e82dd7 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Thu, 23 Jan 2020 17:36:41 +0900 Subject: [PATCH] Revert "efl_ui_image: Call unload file when calling file_set" Summary: This reverts commit 93bd97025983e48ae8048d0c63b5d8b314f1de42. efl.ui.image using prev and current inner image object. Unloading the efl.ui.image class can be unloaded up to the prev image. And because efl.ui.image is using the image caching feature together, it may get unexpected errors. Therefore, revert this patch. Test Plan: N/A Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11157 --- src/lib/elementary/efl_ui_image.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c index 1de73161c5..1f6ba219d1 100644 --- a/src/lib/elementary/efl_ui_image.c +++ b/src/lib/elementary/efl_ui_image.c @@ -999,7 +999,6 @@ _efl_ui_image_smart_internal_file_set(Eo *obj, Efl_Ui_Image_Data *sd) const Eina_File *f; const char *key; const char *file = efl_file_get(obj); - efl_file_unload(obj); if (eina_str_has_extension(file, ".edj")) return _efl_ui_image_edje_file_set(obj);