From: Jaeun Choi Date: Tue, 1 Oct 2013 13:18:57 +0000 (+0900) Subject: bug fix: fixed memory leak X-Git-Tag: submit/devel/efl/20131029.104556~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=321a0db5a8120c4c8ec0ced4806546dfb2a1123a;p=platform%2Fupstream%2Felementary.git bug fix: fixed memory leak Summary: The original code created an edje object temporarily for index calculation and didn't delete it which caused memory leak. fixed it. Test Plan: None Reviewers: Hermet, seoz Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D246 --- diff --git a/src/lib/elm_index.c b/src/lib/elm_index.c index 9a56e68..c5123c6 100644 --- a/src/lib/elm_index.c +++ b/src/lib/elm_index.c @@ -228,6 +228,8 @@ _index_box_auto_fill(Evas_Object *obj, edje_object_size_min_restricted_calc(o, NULL, &mh, 0, 0); + evas_object_del(o); + EINA_LIST_FOREACH(sd->items, l, it) if (it->level == level) num_of_items++;