diff options
author | Seunghun Lee <shiin.lee@samsung.com> | 2015-10-15 14:16:55 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2015-10-15 14:16:56 +0900 |
commit | 261f083c4e7cf1f2c15cecb153d27180dc1278ee (patch) | |
tree | 383bfc607cc333d94dd2ed17b749dfd76285c24f | |
parent | 229106963ab185c7f6144d82f2b6f895ad409616 (diff) | |
download | efl-261f083c4e7cf1f2c15cecb153d27180dc1278ee.tar.gz |
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
-rw-r--r-- | src/modules/ecore_imf/wayland/wayland_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/ecore_imf/wayland/wayland_module.c b/src/modules/ecore_imf/wayland/wayland_module.c index d5dfbc277e..7f7b2048be 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); |