ecore_imf/wayland: Add NULL check for text_input_manager.
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 15 Oct 2015 05:16:55 +0000 (14:16 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 15 Oct 2015 05:16:56 +0000 (14:16 +0900)
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

index d5dfbc2..7f7b204 100644 (file)
@@ -122,6 +122,9 @@ im_module_create()
                   break;
                }
           }
+
+        if (!text_input_manager)
+          return NULL;
      }
 
    ctxd = wayland_im_context_new(text_input_manager);