summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-19 14:43:31 +0200
committerCedric Bail <cedric.bail@free.fr>2019-09-19 14:37:25 -0700
commit6960751c4580af9e902cd7719c1acafab4ce7bc5 (patch)
tree7f2a301fd82ebdf17de9eb0d800cce2eeb20a109 /src/tests
parente06e03f2200c1ed33a46369c01f3c6ca311f37e8 (diff)
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
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/elm_test_widget_focus.c2
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 d41889b86e..fb2a5a2678 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)
201 ck_assert_int_eq(flag_unfocused, EINA_TRUE); 201 ck_assert_int_eq(flag_unfocused, EINA_TRUE);
202 ck_assert_int_eq(elm_object_focus_get(resettor), EINA_TRUE); 202 ck_assert_int_eq(elm_object_focus_get(resettor), EINA_TRUE);
203 ck_assert_int_eq(elm_object_focus_get(o), EINA_FALSE); 203 ck_assert_int_eq(elm_object_focus_get(o), EINA_FALSE);
204 evas_object_smart_callback_del_full(o, "focused", _eventing_test, &flag_focused);
205 evas_object_smart_callback_del_full(o, "unfocused", _eventing_test, &flag_unfocused);
204 } 206 }
205 207
206 eina_hash_free(map); 208 eina_hash_free(map);