diff options
-rwxr-xr-x | mobile/src/ug-nfc-setting-main.c | 2 | ||||
-rwxr-xr-x | wearable/app/src/nsa-view-tap-n-pay.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mobile/src/ug-nfc-setting-main.c b/mobile/src/ug-nfc-setting-main.c index 850f439..b2d90dd 100755 --- a/mobile/src/ug-nfc-setting-main.c +++ b/mobile/src/ug-nfc-setting-main.c @@ -83,6 +83,8 @@ static bool __reply_to_launch_request(app_control_h service, app_control_result_ app_control_reply_to_launch_request(reply, service, result); ret = true; } + + free(operation); } app_control_destroy(reply); diff --git a/wearable/app/src/nsa-view-tap-n-pay.c b/wearable/app/src/nsa-view-tap-n-pay.c index 2af6a07..6f5da50 100755 --- a/wearable/app/src/nsa-view-tap-n-pay.c +++ b/wearable/app/src/nsa-view-tap-n-pay.c @@ -192,6 +192,9 @@ static char *__get_launch_app_id(char *pkgid) return strdup(pkgid); ret = pkgmgrinfo_pkginfo_get_mainappid(pkginfo, &main_appid); + + pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo); + if (ret == 0) return strdup(main_appid); else |