seoz pushed a commit to branch elementary-1.12. http://git.enlightenment.org/core/elementary.git/commit/?id=2f87df26f28fb6f44676412c97544d34ee414297
commit 2f87df26f28fb6f44676412c97544d34ee414297 Author: Amitesh Singh <[email protected]> Date: Fri Dec 26 20:22:57 2014 +0900 list/genlist/gengrid: Fix memory leak. Summary: @Fix Reviewers: kimcinoo, SanghyeonLee, raster, seoz Reviewed By: seoz Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D1825 Conflicts: src/lib/elm_gengrid.c src/lib/elm_genlist.c --- src/lib/elm_gengrid.c | 2 ++ src/lib/elm_genlist.c | 2 ++ src/lib/elm_list.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index c8f8d33..ddca082 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -2977,6 +2977,8 @@ _elm_gengrid_nearest_visible_item_get(Evas_Object *obj, Elm_Object_Item *it) } } } + eina_list_free(item_list); + return it; } diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 453e693..b91c9f6 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -2947,6 +2947,8 @@ _elm_genlist_nearest_visible_item_get(Evas_Object *obj, Elm_Object_Item *it) } } } + eina_list_free(item_list); + return it; } diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 54f4ddc..de26e4e 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1229,6 +1229,8 @@ _elm_list_nearest_visible_item_get(Evas_Object *obj, Elm_Object_Item *it) } } } + eina_list_free(item_list); + return it; } --
