hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6a14507edc133f1e51a6123df646162c5831b1f2

commit 6a14507edc133f1e51a6123df646162c5831b1f2
Author: JunsuChoi <jsuya.c...@samsung.com>
Date:   Wed May 13 21:58:17 2020 +0900

    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
---
 src/lib/edje/edje_calc.c | 1 +
 1 file changed, 1 insertion(+)

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)
           {
              lottie_data[lottie_data_len] = '\0';
              file = eina_file_virtualize(NULL, lottie_data, lottie_data_len + 
1, EINA_FALSE);
+             if (efl_file_loaded_get(ep->object)) efl_file_unload(ep->object);
              efl_file_simple_mmap_load(ep->object, file, NULL);
 
              if (ep->typedata.vector->lottie_virtual_file)

-- 


Reply via email to