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:
parent
f10bd61c9d
commit
80ffed5d85
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue