summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-04-09 15:17:13 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-18 08:33:47 +0200
commit80ffed5d85638279340862ccff91c86f49b986af (patch)
treeaf4a7d3bced222e369834700f92430732b02a048
parentf10bd61c9ded30ce1a928964e81c8191e0a5aee2 (diff)
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 <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8578
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 63eddd4..da73c03 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)
13571 ts->objects = eina_list_remove(ts->objects, eo_obj); 13571 ts->objects = eina_list_remove(ts->objects, eo_obj);
13572 if (!ts->objects && (ts->delete_me || o->auto_styles)) 13572 if (!ts->objects && (ts->delete_me || o->auto_styles))
13573 { 13573 {
13574 _style_cache = eina_list_remove(_style_cache, ts);
13574 evas_textblock_style_free(ts); 13575 evas_textblock_style_free(ts);
13575 } 13576 }
13576 free(use); 13577 free(use);