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
This commit is contained in:
Seunghun Lee 2015-10-15 14:16:55 +09:00 committed by Jihoon Kim
parent 229106963a
commit 261f083c4e
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ im_module_create()
break;
}
}
if (!text_input_manager)
return NULL;
}
ctxd = wayland_im_context_new(text_input_manager);