Fix deadlock issue when calling a null value of Ecore_Wl_input 12/97912/1
authorInHong Han <inhong1.han@samsung.com>
Tue, 15 Nov 2016 09:24:01 +0000 (18:24 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 15 Nov 2016 09:29:12 +0000 (18:29 +0900)
Change-Id: Idaf43e9dd1403761854abf9f71bba0aeef491fc1

ism/extras/wayland_immodule/wayland_imcontext.c

index 597e364..02f7b67 100644 (file)
@@ -2696,7 +2696,7 @@ wayland_im_context_filter_event(Ecore_IMF_Context    *ctx,
 
     if (type == ECORE_IMF_EVENT_KEY_UP || type == ECORE_IMF_EVENT_KEY_DOWN) {
         WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx);
-        if (!imcontext)
+        if (!imcontext || !imcontext->input)
             return EINA_FALSE;
 
         if (!_focused_ctx) {