From 5b82d364e62c663f2dc3e14c4798b23323049cd0 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 28 Jun 2018 10:09:28 +0900 Subject: [PATCH] demo: Add code to unregister vconf notification Change-Id: I546bc1569b3077088409acae5c76e3285e243aed Signed-off-by: Jihoon Kim --- ism/demos/isf_demo_efl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ism/demos/isf_demo_efl.cpp b/ism/demos/isf_demo_efl.cpp index da18a12..512ef68 100644 --- a/ism/demos/isf_demo_efl.cpp +++ b/ism/demos/isf_demo_efl.cpp @@ -396,7 +396,6 @@ static int app_create (void *data) vconf_notify_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb, NULL); - ad->key_down_handler = ecore_event_handler_add (ECORE_EVENT_KEY_DOWN, _keydown_event, ad); ad->key_up_handler = ecore_event_handler_add (ECORE_EVENT_KEY_UP, _keyup_event, ad); @@ -413,6 +412,8 @@ static int app_exit (void *data) struct appdata *ad = (struct appdata *)data; if (ad == NULL) return -1; + vconf_ignore_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb); + if (ad->key_down_handler) { ecore_event_handler_del (ad->key_down_handler); ad->key_down_handler = NULL; -- 2.7.4