summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-05-13 21:58:17 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-13 21:58:17 +0900
commit6a14507edc133f1e51a6123df646162c5831b1f2 (patch)
treedbcce6e60f1ee2a5d5556f67ef43c6f8e88b983c
parent4dbb78ee9b948abc40d50ea512b60112610f989e (diff)
edje_calc: Add unload file for already loaded vector lottie file.
Summary: Users can use multiple jsons per description in one part in edc. At that time, multiple files are loaded, if a file is already loaded, it must be unloaded. Test Plan: edje_cc -beta -id ./ json_edc.edc make ./test Push Change button -> shutdown application {F3882716} Reviewers: Hermet, herb, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11820
-rw-r--r--src/lib/edje/edje_calc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 2af4934ce9..f9a6675627 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -3243,6 +3243,7 @@ _edje_vector_load_lottie(Edje *ed, Edje_Real_Part *ep, const char *key)
3243 { 3243 {
3244 lottie_data[lottie_data_len] = '\0'; 3244 lottie_data[lottie_data_len] = '\0';
3245 file = eina_file_virtualize(NULL, lottie_data, lottie_data_len + 1, EINA_FALSE); 3245 file = eina_file_virtualize(NULL, lottie_data, lottie_data_len + 1, EINA_FALSE);
3246 if (efl_file_loaded_get(ep->object)) efl_file_unload(ep->object);
3246 efl_file_simple_mmap_load(ep->object, file, NULL); 3247 efl_file_simple_mmap_load(ep->object, file, NULL);
3247 3248
3248 if (ep->typedata.vector->lottie_virtual_file) 3249 if (ep->typedata.vector->lottie_virtual_file)