sanghyeonlee pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e8c3346379638f085613df61277ebd784faf235a

commit e8c3346379638f085613df61277ebd784faf235a
Author: SangHyeon Lee <sh10233....@samsung.com>
Date:   Fri Apr 1 16:26:57 2016 +0900

    fix genlist content leak in reausable case
---
 src/lib/elementary/elm_genlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 3af6491..6a8e8a2 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -410,7 +410,6 @@ _item_content_realize(Elm_Gen_Item *it,
                        evas_object_size_hint_min_set(content, minw, minh);
                     }
 
-                  *contents = eina_list_append(*contents, content);
                   if (!edje_object_part_swallow(target, key, content))
                     {
                        ERR("%s (%p) can not be swallowed into %s",
@@ -420,6 +419,7 @@ _item_content_realize(Elm_Gen_Item *it,
                     }
                   elm_widget_sub_object_add(WIDGET(it), content);
                }
+             *contents = eina_list_append(*contents, content);
 
              if (elm_wdg_item_disabled_get(EO_OBJ(it)))
                elm_widget_disabled_set(content, EINA_TRUE);

-- 


Reply via email to