diff options
author | Youngjae Shin <yj99.shin@samsung.com> | 2022-07-04 17:03:13 +0900 |
---|---|---|
committer | Youngjae Shin <yj99.shin@samsung.com> | 2022-07-04 17:07:38 +0900 |
commit | 43a4c420366ae9ccd907fb0e0ce0f55ca9269081 (patch) | |
tree | edf3c00beccd8c97a92ab00aec2ccf6534a94783 | |
parent | bbc566edd92e413d6c79ff62ad7ccbcc60f1279d (diff) | |
download | modes-plugins-tizen_7.0.tar.gz modes-plugins-tizen_7.0.tar.bz2 modes-plugins-tizen_7.0.zip |
fix memory leaktizen_7.0_m2_releasesubmit/tizen/20220704.080759accepted/tizen/unified/20220705.211042accepted/tizen/7.0/unified/hotfix/20221116.105749accepted/tizen/7.0/unified/20221110.055903tizen_7.0_hotfixtizen_7.0accepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Change-Id: I3d39dc16c44402ca13d48aeb6378c062d58c25bd
-rw-r--r-- | app/AppActionLaunch.cpp | 3 | ||||
-rw-r--r-- | bluetooth/BtActionAudioConnect.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/AppActionLaunch.cpp b/app/AppActionLaunch.cpp index fff0781..ec92b23 100644 --- a/app/AppActionLaunch.cpp +++ b/app/AppActionLaunch.cpp @@ -84,9 +84,12 @@ void AppActionLaunch::undo() ERR("app_manager_get_app_context(%s) Fail(%s)", requestVal.c_str(), get_error_message(ret)); return; } + ret = app_manager_terminate_app(runAppContext); if (APP_MANAGER_ERROR_NONE != ret) ERR("app_manager_terminate_app() Fail(%s)", get_error_message(ret)); + + app_context_destroy(runAppContext); } std::string AppActionLaunch::getUndoInfo() diff --git a/bluetooth/BtActionAudioConnect.cpp b/bluetooth/BtActionAudioConnect.cpp index 9588948..70fffba 100644 --- a/bluetooth/BtActionAudioConnect.cpp +++ b/bluetooth/BtActionAudioConnect.cpp @@ -57,6 +57,7 @@ int BtActionAudioConnect::set(const std::string &val) DBG("BT device(%s) is not bonded", val.c_str()); } else { ERR("bt_adapter_get_bonded_device_info() Fail(%s)", get_error_message(ret)); + bt_adapter_free_device_info(devInfo); return MODES_ERROR_SYSTEM; } |