jihoon pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=261f083c4e7cf1f2c15cecb153d27180dc1278ee

commit 261f083c4e7cf1f2c15cecb153d27180dc1278ee
Author: Seunghun Lee <shiin....@samsung.com>
Date:   Thu Oct 15 14:16:55 2015 +0900

    ecore_imf/wayland: Add NULL check for text_input_manager.
    
    Summary: this patch fixes crash caused by accessing the text_input_manager 
in wayland_im_context_add().
    
    Test Plan: N/A
    
    Reviewers: jihoon
    
    Reviewed By: jihoon
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D3176
---
 src/modules/ecore_imf/wayland/wayland_module.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/ecore_imf/wayland/wayland_module.c 
b/src/modules/ecore_imf/wayland/wayland_module.c
index d5dfbc2..7f7b204 100644
--- a/src/modules/ecore_imf/wayland/wayland_module.c
+++ b/src/modules/ecore_imf/wayland/wayland_module.c
@@ -122,6 +122,9 @@ im_module_create()
                   break;
                }
           }
+
+        if (!text_input_manager)
+          return NULL;
      }
 
    ctxd = wayland_im_context_new(text_input_manager);

-- 


Reply via email to