From 931eb8798936ff2417b570eeea77f383a1d6fa25 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 10 Jan 2020 14:50:55 +0100 Subject: [PATCH] efl_ui_collection_view: fix test count_realize / unrealize are stacked, we should not leak a callback that has a stack var as user_data. --- src/tests/elementary/efl_ui_test_collection_view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/elementary/efl_ui_test_collection_view.c b/src/tests/elementary/efl_ui_test_collection_view.c index d064203..5471dea 100644 --- a/src/tests/elementary/efl_ui_test_collection_view.c +++ b/src/tests/elementary/efl_ui_test_collection_view.c @@ -106,6 +106,8 @@ EFL_START_TEST(test_efl_ui_collection_view_basic) f = efl_model_children_slice_get(lv, 0, efl_model_children_count_get(lv)); f = efl_future_then(lv, f, .success_type = EINA_VALUE_TYPE_ARRAY, .success = _children_get); ecore_main_loop_iterate(); + efl_event_callback_del(lv, EFL_UI_COLLECTION_VIEW_EVENT_ITEM_REALIZED, (void*)event_callback_that_increments_an_int_when_called, &count_realize); + efl_event_callback_del(lv, EFL_UI_COLLECTION_VIEW_EVENT_ITEM_UNREALIZED, (void*)event_callback_that_increments_an_int_when_called, &count_unrealize); } EFL_END_TEST -- 2.7.4