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
This commit is contained in:
Amitesh Singh 2014-12-26 20:22:57 +09:00 committed by Daniel Juyung Seo
parent 748f86feff
commit fc1579020c
3 changed files with 6 additions and 0 deletions

View File

@ -3041,6 +3041,8 @@ _elm_gengrid_nearest_visible_item_get(Evas_Object *obj, Elm_Object_Item *eo_it)
}
}
}
eina_list_free(item_list);
return eo_it;
}

View File

@ -3103,6 +3103,8 @@ _elm_genlist_nearest_visible_item_get(Evas_Object *obj, Elm_Object_Item *eo_it)
}
}
}
eina_list_free(item_list);
return eo_it;
}

View File

@ -1243,6 +1243,8 @@ _elm_list_nearest_visible_item_get(Evas_Object *obj, Elm_List_Item_Data *it)
}
}
}
eina_list_free(item_list);
return it;
}