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
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);
}
eina_hash_free(map);