summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2015-10-20 11:51:17 -0700
committerCedric BAIL <cedric@osg.samsung.com>2015-10-20 14:01:15 -0700
commit6bd863cf4ffb46f0267e96844cea37a95599e9de (patch)
treef86d405f78ead544611ef6fd992ee97f0396be39
parenta347a47e7502542115412efc4f2ddcd78c610193 (diff)
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>
-rw-r--r--src/lib/evas/canvas/evas_object_text.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_text.c b/src/lib/evas/canvas/evas_object_text.c
index 5eab0eb704..3e3e9ffe97 100644
--- a/src/lib/evas/canvas/evas_object_text.c
+++ b/src/lib/evas/canvas/evas_object_text.c
@@ -1554,6 +1554,7 @@ evas_object_text_free(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
1554 if (o->cur.font) eina_stringshare_del(o->cur.font); 1554 if (o->cur.font) eina_stringshare_del(o->cur.font);
1555 if (o->cur.fdesc) evas_font_desc_unref(o->cur.fdesc); 1555 if (o->cur.fdesc) evas_font_desc_unref(o->cur.fdesc);
1556 if (o->cur.source) eina_stringshare_del(o->cur.source); 1556 if (o->cur.source) eina_stringshare_del(o->cur.source);
1557 if (o->bidi_delimiters) eina_stringshare_del(o->bidi_delimiters);
1557 if (o->cur.text) free(o->cur.text); 1558 if (o->cur.text) free(o->cur.text);
1558 if (o->font && obj->layer && obj->layer->evas) 1559 if (o->font && obj->layer && obj->layer->evas)
1559 evas_font_free(obj->layer->evas->evas, o->font); 1560 evas_font_free(obj->layer->evas->evas, o->font);