Set frontend data to NULL 02/81102/1
authorLi Zhang <li2012.zhang@samsung.com>
Wed, 29 Jun 2016 10:57:52 +0000 (18:57 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 22 Jul 2016 05:14:01 +0000 (14:14 +0900)
Change-Id: Ib9970838354d9d95c46cb8e4fd4dc3069d5e0b7f

ism/extras/efl_immodule/isf_imf_context.cpp

index 741494a..adee47e 100644 (file)
@@ -1196,6 +1196,8 @@ isf_imf_context_del (Ecore_IMF_Context *ctx)
         // we need set the focused_ic to this context temporary.
         EcoreIMFContextISF *old_focused = _focused_ic;
         _focused_ic = context_scim;
+        if(context_scim->impl->si && context_scim->impl->si->get_frontend_data() == context_scim)
+            context_scim->impl->si->set_frontend_data (NULL);
         _focused_ic = old_focused;
 
         if (context_scim == _focused_ic) {