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:
parent
4b8ddcff7d
commit
ffc3c337dc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue