summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/ecore_imf_module.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2017-08-01 10:27:37 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2017-08-01 10:27:37 +0900
commit15250fb8cf63728d9b9ae073b7ae5085526c61ca (patch)
tree035eb4449f3060987fea7d5e664e1287107de158 /src/lib/ecore_imf/ecore_imf_module.c
parentacc76cadd3b10e882d3bb1b82fb96ee58fce2b71 (diff)
ecore_imf: check return value of memory allocation
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_module.c')
-rw-r--r--src/lib/ecore_imf/ecore_imf_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_module.c b/src/lib/ecore_imf/ecore_imf_module.c
index 3fec5de1d6..814152f79b 100644
--- a/src/lib/ecore_imf/ecore_imf_module.c
+++ b/src/lib/ecore_imf/ecore_imf_module.c
@@ -306,6 +306,8 @@ ecore_imf_module_register(const Ecore_IMF_Context_Info *info,
306 modules = eina_hash_string_superfast_new(EINA_FREE_CB(_ecore_imf_module_free)); 306 modules = eina_hash_string_superfast_new(EINA_FREE_CB(_ecore_imf_module_free));
307 307
308 module = malloc(sizeof(Ecore_IMF_Module)); 308 module = malloc(sizeof(Ecore_IMF_Module));
309 EINA_SAFETY_ON_NULL_RETURN(module);
310
309 module->info = info; 311 module->info = info;
310 /* cache imf_module_create as it may be used several times */ 312 /* cache imf_module_create as it may be used several times */
311 module->create = imf_module_create; 313 module->create = imf_module_create;