Check the return of ecore_x_init and error out if that fails.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 09:21:33 +01:00
parent ee037d3586
commit 9103b7e2e3
1 changed files with 6 additions and 1 deletions

View File

@ -767,7 +767,12 @@ _ecore_imf_xim_init(void)
DBG(" ");
ecore_x_init(NULL);
if (!ecore_x_init(NULL))
{
eina_shutdown();
return EINA_FALSE;
}
ecore_imf_module_register(&xim_info,
xim_imf_module_create,
xim_imf_module_exit);