diff options
author | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-11-09 19:10:13 +0900 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-11-09 19:10:13 +0900 |
commit | 74b7bde24e9e6b85b1f07b398e633fd200a8c7a5 (patch) | |
tree | aedf4e2ac688189c6d33472fbab6325e8e4a11fc | |
parent | e3b24c3115f75927539ebbc66e6d36121fd03131 (diff) | |
download | askuser-popup-74b7bde24e9e6b85b1f07b398e633fd200a8c7a5.tar.gz askuser-popup-74b7bde24e9e6b85b1f07b398e633fd200a8c7a5.tar.bz2 askuser-popup-74b7bde24e9e6b85b1f07b398e633fd200a8c7a5.zip |
Destroy app info after use
Change-Id: Ied50bcedfc129262646312bfa6a994f82d4c026e
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
-rw-r--r-- | ui/src/app_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/src/app_main.c b/ui/src/app_main.c index e268534..79eabae 100644 --- a/ui/src/app_main.c +++ b/ui/src/app_main.c @@ -110,6 +110,7 @@ static void app_control(app_control_h app_control, void *data) free(caller_appid); if (ret != APP_MANAGER_ERROR_NONE) { LOGE("app_info_create() failed. ret = %d", ret); + app_info_destroy(app_info); ui_app_exit(); } @@ -118,8 +119,10 @@ static void app_control(app_control_h app_control, void *data) ret = app_info_get_package(app_info, &caller_pkgid); if (ret != APP_MANAGER_ERROR_NONE) { LOGE("app_info_get_package() failed. ret = %d", ret); + app_info_destroy(app_info); ui_app_exit(); } + app_info_destroy(app_info); if (!ad->caller_pkgid) { ad->caller_pkgid = strdup(caller_pkgid); |