!5 【OpenHarmony】【应用程序框架子系统】解决重复释放内存问题

Merge pull request !5 from wangdengjia/issue_#I3IT8I
This commit is contained in:
openharmony_ci
2021-04-14 22:17:07 +08:00
committed by Gitee
@@ -163,6 +163,7 @@ bool BundleResTransform::ConvertDesResIdToBundleInfo(const std::string &path, ui
if (!AbilityInfoUtils::SetAbilityInfoDescription(bundleInfo->abilityInfos + index, description)) {
HILOG_ERROR(HILOG_MODULE_APP, "set description resId in abilityInfo fail!");
AdapterFree(description);
return false;
}
AdapterFree(description);
return true;