diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-07-11 19:21:34 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-07-11 19:21:34 +0900 |
commit | 425df13a8eff7e59dfa03805526247cec594eb34 (patch) | |
tree | eed6f9408dbe5bbdc949145e2259af047c05e3ec | |
parent | 1b6ad015e313b94e1218832a6585675f1aeaf80e (diff) | |
download | application-425df13a8eff7e59dfa03805526247cec594eb34.tar.gz application-425df13a8eff7e59dfa03805526247cec594eb34.tar.bz2 application-425df13a8eff7e59dfa03805526247cec594eb34.zip |
Fix wrong callback invoke on SHARE PANEL launchsubmit/tizen/20160711.122841accepted/tizen/wearable/20160712.000033accepted/tizen/tv/20160712.000041accepted/tizen/mobile/20160711.235927accepted/tizen/ivi/20160712.000133accepted/tizen/common/20160712.150512
Change-Id: I5826d9e306e1a9e849d8ccdc3611f756fe46e4f1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | app_control/app_control.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app_control/app_control.c b/app_control/app_control.c index b323f30..1d9e372 100644 --- a/app_control/app_control.c +++ b/app_control/app_control.c @@ -738,6 +738,11 @@ int app_control_send_launch_request(app_control_h app_control, app_control_reply bundle_del(app_control->data, BUNDLE_KEY_OPERATION); if (launch_pid < 0) { + if (request_context->app_control) + app_control_destroy(request_context->app_control); + + free(request_context); + if (launch_pid == APPSVC_RET_ENOMATCH) return app_control_error(APP_CONTROL_ERROR_APP_NOT_FOUND, __FUNCTION__, NULL); else if (launch_pid == APPSVC_RET_EILLACC) @@ -761,7 +766,9 @@ int app_control_send_launch_request(app_control_h app_control, app_control_reply aul_add_caller_cb(launch_pid, __handle_launch_result, request_context); /* launched without app selector */ - if (strncmp(callee, APP_SELECTOR, strlen(APP_SELECTOR)) != 0) + if ((strcmp(callee, APP_SELECTOR) != 0) || + (strcmp(callee, SHARE_PANEL) != 0)) + aul_invoke_caller_cb(request_context); } else { /* default case */ |