davemds pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=ffc3c337dc183a12e71a80c4a1e7c80710c2d14f
commit ffc3c337dc183a12e71a80c4a1e7c80710c2d14f Author: Dave Andreoli <[email protected]> Date: Sun Mar 4 09:46:21 2018 +0100 Elm: fix Layout.content_swallow_list_get() to not leak The eina_list_free was wrongly used and was leaking the whole list. Fixed. --- efl/elementary/layout.pxi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/efl/elementary/layout.pxi b/efl/elementary/layout.pxi index a82de40..539f455 100644 --- a/efl/elementary/layout.pxi +++ b/efl/elementary/layout.pxi @@ -875,13 +875,8 @@ cdef class LayoutClass(Object): """ cdef: Eina_List *l = elm_layout_content_swallow_list_get(self.obj) - list ret = list() - - while l: - ret.append(object_from_instance(<Evas_Object*>l.data)) - l = l.next + list ret = eina_list_objects_to_python_list(l) eina_list_free(l) - return ret property icon: --
