From: Sungmin Kwak Date: Wed, 6 Sep 2017 08:17:15 +0000 (+0900) Subject: Delete the timer callback when destroying WSCContextISF pointer X-Git-Tag: accepted/tizen/unified/20170913.071437~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69fd667603b8d71926cfdfbd5a837543dba0a05c;p=platform%2Fcore%2Fuifw%2Fisf.git Delete the timer callback when destroying WSCContextISF pointer The 2-second timer callback is used to prevent Remote input after Local input. The pointer parameter to this callback can be invalid if the context is deleted. Change-Id: I2c63ca6474ab662cdc0a2957afbde1890856e3dc --- diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index 2f699c6..b0a5e16 100644 --- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp +++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp @@ -747,6 +747,10 @@ wl_im_destroy () wsc_ctx->autocapital_type_initialized = EINA_FALSE; wsc_ctx->language_initialized = EINA_FALSE; + if (_resource_check_timer) + ecore_timer_del (_resource_check_timer); + _resource_check_timer = NULL; + isf_wsc_context_del (wsc_ctx); delete wsc_ctx; _wl_im_ctx->wsc->wsc_ctx = NULL;