diff options
author | Sungmin Kwak <sungmin.kwak@samsung.com> | 2017-09-06 17:17:15 +0900 |
---|---|---|
committer | Sungmin Kwak <sungmin.kwak@samsung.com> | 2017-09-06 17:17:15 +0900 |
commit | 69fd667603b8d71926cfdfbd5a837543dba0a05c (patch) | |
tree | b449a2702b2973e200a423f6ec7c92d2887e9a12 /ism/modules | |
parent | 0b71ab13c936922fbb21d2025a2954197482ce36 (diff) | |
download | isf-69fd667603b8d71926cfdfbd5a837543dba0a05c.tar.gz isf-69fd667603b8d71926cfdfbd5a837543dba0a05c.tar.bz2 isf-69fd667603b8d71926cfdfbd5a837543dba0a05c.zip |
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
Diffstat (limited to 'ism/modules')
-rw-r--r-- | ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index 2f699c6f..b0a5e166 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; |