Elm: fix Layout.content_swallow_list_get() to not leak

The eina_list_free was wrongly used and was leaking
the whole list. Fixed.
This commit is contained in:
Davide Andreoli 2018-03-04 09:46:21 +01:00
parent 4b8ddcff7d
commit ffc3c337dc
1 changed files with 1 additions and 6 deletions

View File

@ -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: