summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeunghun Lee <shiin.lee@samsung.com>2015-10-15 14:16:55 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2015-10-15 14:16:56 +0900
commit261f083c4e7cf1f2c15cecb153d27180dc1278ee (patch)
tree383bfc607cc333d94dd2ed17b749dfd76285c24f
parent229106963ab185c7f6144d82f2b6f895ad409616 (diff)
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.c3
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()
122 break; 122 break;
123 } 123 }
124 } 124 }
125
126 if (!text_input_manager)
127 return NULL;
125 } 128 }
126 129
127 ctxd = wayland_im_context_new(text_input_manager); 130 ctxd = wayland_im_context_new(text_input_manager);