ecore_imf/wayland: Add NULL check for text_input_manager. 98/49598/1 accepted/tizen/mobile/20151016.043519 accepted/tizen/tv/20151016.043533 accepted/tizen/wearable/20151016.043549 submit/tizen/20151015.111057 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
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 09:44:40 +0000 (18:44 +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

Change-Id: I32f68c522d578aa1badae9bbe7c2fbd4ba36a38d

src/modules/ecore_imf/wayland/wayland_module.c

index 3c41fce..19316a0 100644 (file)
@@ -122,6 +122,9 @@ im_module_create()
                   break;
                }
           }
+
+        if (!text_input_manager)
+          return NULL;
      }
 
    ctxd = wayland_im_context_new(text_input_manager);