elementary: fix potential race condition by using Eina_Future attached to the object.
authorCedric BAIL <cedric.bail@free.fr>
Thu, 11 Jul 2019 22:53:54 +0000 (15:53 -0700)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 23 Jul 2019 05:04:43 +0000 (14:04 +0900)
commit0f6b29930888c4349d89e08730d2ef3d7d87c673
tree7e30e11777173c904b69156fac6f142b0a5cd2bd
parente2cf381cf5c416eded7471db399d5ba31e8db60c
elementary: fix potential race condition by using Eina_Future attached to the object.

I get some random segfault in elementary test suite pointing to this code. Most likely
we do not properly destroy the timer during destruction. Could be because we initiate
a delay while destruction is going on or something like that. Anyway, it is easier and
more robust to get it fixed by linking the lifetime of the timeout to the lifetime of
the widget as future allow us to do easily.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9298
src/lib/elementary/efl_ui_spin_button.c
src/lib/elementary/efl_ui_spin_button_private.h