zmike pushed a commit to branch efl-1.22.

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

commit b60e894ad96cf6938dd5b3f30b829518a52a5ec8
Author: Ali Alzyod <[email protected]>
Date:   Tue Apr 9 15:17:13 2019 +0000

    Freeing Global Memory list on destructor
    
    Issue with global list item, used to same styles. (in destructor we do not 
remove styles from it, which will cause memory leak)
    
    Reviewed-by: Marcel Hollerbach <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D8578
---
 src/lib/evas/canvas/evas_object_textblock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/canvas/evas_object_textblock.c 
b/src/lib/evas/canvas/evas_object_textblock.c
index 63eddd46a3..da73c03eb7 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -13571,6 +13571,7 @@ evas_object_textblock_free(Evas_Object *eo_obj)
         ts->objects = eina_list_remove(ts->objects, eo_obj);
         if (!ts->objects && (ts->delete_me || o->auto_styles))
           {
+             _style_cache = eina_list_remove(_style_cache, ts);
              evas_textblock_style_free(ts);
           }
         free(use);

-- 


Reply via email to