summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-10 14:50:55 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-10 14:50:55 +0100
commit5296c1dd1a3c0bec8cf72e2d6b5817f4908822f6 (patch)
treed0ba327c71ab2419d38321e927dec68cad365256
parent33c3cb3667be8ea2889998a10459d98fceba139f (diff)
downloadefl-5296c1dd1a3c0bec8cf72e2d6b5817f4908822f6.tar.gz
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.
-rw-r--r--src/tests/elementary/efl_ui_test_collection_view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_collection_view.c b/src/tests/elementary/efl_ui_test_collection_view.c
index d064203ffb..5471deaad4 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