aboutsummaryrefslogtreecommitdiffstats
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
parentevas: no need to compute clippees list if we just want to know if there is any. (diff)
downloadefl-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.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()
break;
}
}
+
+ if (!text_input_manager)
+ return NULL;
}
ctxd = wayland_im_context_new(text_input_manager);