From: Jihoon Kim Date: Mon, 7 Mar 2022 12:58:10 +0000 (+0900) Subject: Prevent to delete timer twice X-Git-Tag: submit/tizen/20220317.083632~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e2ba70ac4587f34916c136790846cd21f0340b3;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Prevent to delete timer twice if it returns ECORE_CALLBACK_CANCEL in timer callback it will be deleted automatically Change-Id: I46bf3eb609d33d26ec9d88c69ade1b050230f01c Signed-off-by: Jihoon Kim --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 3539149..4f4bb1a 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -227,11 +227,7 @@ _will_hide_timer_handler(void *data) g_input_panel_state = E_INPUT_PANEL_STATE_DID_HIDE; } - if (g_timer_will_hide) - { - ecore_timer_del(g_timer_will_hide); - g_timer_will_hide = NULL; - } + g_timer_will_hide = NULL; return ECORE_CALLBACK_CANCEL; }