devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=2cee55b72d00c3b8993661a1676fa77d50818720
commit 2cee55b72d00c3b8993661a1676fa77d50818720 Author: Chris Michael <[email protected]> Date: Wed Oct 14 10:52:03 2015 -0400 elementary: Fix genlist example to not free data until After it has been removed from the list @fix CID1327342 Signed-off-by: Chris Michael <[email protected]> --- src/examples/genlist_example_05.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/examples/genlist_example_05.c b/src/examples/genlist_example_05.c index f77762e..d36503c 100644 --- a/src/examples/genlist_example_05.c +++ b/src/examples/genlist_example_05.c @@ -223,12 +223,14 @@ _del_item_cb(void *data, Evas_Object *o, void *event_info) elm_genlist_item_subitems_clear(glit); elm_object_item_del(glit); - _clear_list(d); + if (glit_parent) + { + pdata = elm_object_item_data_get(glit_parent); + pdata->children = eina_list_remove(pdata->children, d); + } - if (!glit_parent) return; + _clear_list(d); - pdata = elm_object_item_data_get(glit_parent); - pdata->children = eina_list_remove(pdata->children, d); elm_genlist_item_update(glit_parent); } --
