diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-19 14:43:31 +0200 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-10-04 09:24:00 -0400 |
commit | f029c2ee33bf30029349e209080bc923b90f9065 (patch) | |
tree | 20e4fa84705db50dc78930d745c20ff62668cdab | |
parent | 00d497dc36a4656d6065efd122b071dbb28f62a2 (diff) | |
download | efl-f029c2ee33bf30029349e209080bc923b90f9065.tar.gz |
elm_test_widget_focus: cleanup callbacks correctly
we need to delete the callback here, otherwise the objects are deleted
later on, which:
- changes focus, which leads to
- callbacks executed with stacked addresses from a dead function
this fixes a testsuite failure on the release build.
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D10020
-rw-r--r-- | src/tests/elementary/elm_test_widget_focus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_test_widget_focus.c b/src/tests/elementary/elm_test_widget_focus.c index ac7f74aa1f..5924aa8482 100644 --- a/src/tests/elementary/elm_test_widget_focus.c +++ b/src/tests/elementary/elm_test_widget_focus.c @@ -201,6 +201,8 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget) ck_assert_int_eq(flag_unfocused, EINA_TRUE); ck_assert_int_eq(elm_object_focus_get(resettor), EINA_TRUE); ck_assert_int_eq(elm_object_focus_get(o), EINA_FALSE); + evas_object_smart_callback_del_full(o, "focused", _eventing_test, &flag_focused); + evas_object_smart_callback_del_full(o, "unfocused", _eventing_test, &flag_unfocused); } } EFL_END_TEST |