diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2015-06-24 11:41:48 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2015-06-24 11:41:48 +0900 |
commit | 713e7895fc1c29af744c526d4ddaaacac1bf53d3 (patch) | |
tree | 2a089bccf9a13e68c18fc74d4cff6297f6f63a43 | |
parent | 420f5a35b87ef8f90c1d15f59bc2c8b515bd3787 (diff) | |
download | app-core-713e7895fc1c29af744c526d4ddaaacac1bf53d3.tar.gz app-core-713e7895fc1c29af744c526d4ddaaacac1bf53d3.tar.bz2 app-core-713e7895fc1c29af744c526d4ddaaacac1bf53d3.zip |
Fix bug in checking return value of create_cbsubmit/tizen/20150625.025455accepted/tizen/wearable/20150625.054632accepted/tizen/tv/20150625.054620accepted/tizen/mobile/20150625.054615
call terminate_cb when the create_cb returns false
Change-Id: Ib2f455efd01a8dff7debd2cab00c2515a1adbb43
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r-- | src/appcore-efl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/appcore-efl.c b/src/appcore-efl.c index e42606c..f704dcb 100644 --- a/src/appcore-efl.c +++ b/src/appcore-efl.c @@ -802,9 +802,11 @@ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv) LOG(LOG_DEBUG, "LAUNCH", "[%s:Platform:appcore_init:done]", ui->name); if (ui->ops && ui->ops->create) { r = ui->ops->create(ui->ops->data); - if (r == -1) { + if (r < 0) { _ERR("create() return error"); appcore_exit(); + if (ui->ops && ui->ops->terminate) + ui->ops->terminate(ui->ops->data); errno = ECANCELED; return -1; } |