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
This commit is contained in:
Ali Alzyod 2019-04-09 15:17:13 +00:00 committed by Marcel Hollerbach
parent f10bd61c9d
commit 80ffed5d85
1 changed files with 1 additions and 0 deletions

View File

@ -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);