summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-03-04 09:46:21 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-03-04 09:46:21 +0100
commitffc3c337dc183a12e71a80c4a1e7c80710c2d14f (patch)
tree4ed959d97638309b89ae3eaa8cca741f0ddcf8af
parent4b8ddcff7d2333afba38a76774c7d18c5e0ed93b (diff)
Elm: fix Layout.content_swallow_list_get() to not leak
The eina_list_free was wrongly used and was leaking the whole list. Fixed.
-rw-r--r--efl/elementary/layout.pxi7
1 files changed, 1 insertions, 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):
875 """ 875 """
876 cdef: 876 cdef:
877 Eina_List *l = elm_layout_content_swallow_list_get(self.obj) 877 Eina_List *l = elm_layout_content_swallow_list_get(self.obj)
878 list ret = list() 878 list ret = eina_list_objects_to_python_list(l)
879
880 while l:
881 ret.append(object_from_instance(<Evas_Object*>l.data))
882 l = l.next
883 eina_list_free(l) 879 eina_list_free(l)
884
885 return ret 880 return ret
886 881
887 property icon: 882 property icon: