forked from enlightenment/efl
evas: fix memory leak.
Summary: Fix memory leak Delimiter string is being saved using eina_stringshare_replace without any del or free when object is deleted. @fix Test Plan: NA Reviewers: cedric, tasn, herdsman Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3201 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
a347a47e75
commit
6bd863cf4f
|
@ -1554,6 +1554,7 @@ evas_object_text_free(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
|
||||||
if (o->cur.font) eina_stringshare_del(o->cur.font);
|
if (o->cur.font) eina_stringshare_del(o->cur.font);
|
||||||
if (o->cur.fdesc) evas_font_desc_unref(o->cur.fdesc);
|
if (o->cur.fdesc) evas_font_desc_unref(o->cur.fdesc);
|
||||||
if (o->cur.source) eina_stringshare_del(o->cur.source);
|
if (o->cur.source) eina_stringshare_del(o->cur.source);
|
||||||
|
if (o->bidi_delimiters) eina_stringshare_del(o->bidi_delimiters);
|
||||||
if (o->cur.text) free(o->cur.text);
|
if (o->cur.text) free(o->cur.text);
|
||||||
if (o->font && obj->layer && obj->layer->evas)
|
if (o->font && obj->layer && obj->layer->evas)
|
||||||
evas_font_free(obj->layer->evas->evas, o->font);
|
evas_font_free(obj->layer->evas->evas, o->font);
|
||||||
|
|
Loading…
Reference in New Issue