- Add calling ecore_shutdown()
Change-Id: I9d13a58cf5e940dac6c7dd7e2bfc8c7ac1a30885
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return -1;
}
- ecore_init();
+ if (!ecore_init()) {
+ LOGE("Failed to initialize ecore");
+ return -1;
+ }
r = appcore_agent_init(&s_ops, argc, argv);
- _retv_if(r == -1, -1);
+ if (r < 0) {
+ ecore_shutdown();
+ return -1;
+ }
appcore_agent_get_app_core(&ac);
agent->app_core = ac;
if (r < 0) {
if (agent->ops && agent->ops->terminate)
agent->ops->terminate(agent->ops->data);
+ ecore_shutdown();
errno = ECANCELED;
return -1;
}