From 869f2e738f5b5bd671bc6040e024b86e09af933d Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Sun, 17 Jul 2016 16:55:48 +0900 Subject: [PATCH] Fix crash issue due to hide timer after deleting context Change-Id: I8a3480fe977bbf11709fa0c67827fd56ac58681a --- ism/extras/wayland_immodule/wayland_imcontext.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index 25c55ae..beea72d 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -402,11 +402,6 @@ _input_panel_hide(Ecore_IMF_Context *ctx, Eina_Bool instant) if (!ctx) return; - if (!get_using_ctx()) { - LOGW("Can't hide input_panel because there is no using context!!"); - return; - } - will_hide = EINA_TRUE; if (instant || (_hide_timer && ecore_timer_pending_get(_hide_timer) <= 0.0)) { @@ -1761,6 +1756,11 @@ wayland_im_context_hide(Ecore_IMF_Context *ctx) { LOGD("ctx : %p", ctx); + if (!get_using_ctx()) { + LOGW("Can't hide input_panel because there is no using context!!"); + return; + } + _input_panel_hide(ctx, EINA_FALSE); } -- 2.7.4