diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-11-08 14:53:24 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-11-08 14:53:24 +0900 |
commit | 35dd5f4f5708d1a771085b49873f03a02d40713b (patch) | |
tree | 969d398ddbbab5d9645f7719ce5633ba182145b9 | |
parent | 668b48c52a2c985e9288547c99917b8f327b001c (diff) | |
download | appcore-agent-35dd5f4f5708d1a771085b49873f03a02d40713b.tar.gz appcore-agent-35dd5f4f5708d1a771085b49873f03a02d40713b.tar.bz2 appcore-agent-35dd5f4f5708d1a771085b49873f03a02d40713b.zip |
Fix the exception handlingsubmit/tizen_3.0_common/20161114.081136submit/tizen_3.0/20161108.071238submit/tizen/20161109.002425submit/tizen/20161108.071447accepted/tizen/wearable/20161110.000412accepted/tizen/tv/20161110.000353accepted/tizen/mobile/20161110.000310accepted/tizen/ivi/20161110.000429accepted/tizen/common/20161109.140332accepted/tizen/3.0/wearable/20161110.070957accepted/tizen/3.0/tv/20161110.070928accepted/tizen/3.0/mobile/20161110.070906accepted/tizen/3.0/ivi/20161110.071008accepted/tizen/3.0/common/20161114.143102
- Add calling ecore_shutdown()
Change-Id: I9d13a58cf5e940dac6c7dd7e2bfc8c7ac1a30885
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/appcore-agent.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/appcore-agent.c b/src/appcore-agent.c index 93c685b..a33301f 100644 --- a/src/appcore-agent.c +++ b/src/appcore-agent.c @@ -936,10 +936,16 @@ static int __before_loop(struct agent_priv *agent, int argc, char **argv) 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; @@ -950,6 +956,7 @@ static int __before_loop(struct agent_priv *agent, int argc, char **argv) if (r < 0) { if (agent->ops && agent->ops->terminate) agent->ops->terminate(agent->ops->data); + ecore_shutdown(); errno = ECANCELED; return -1; } |